User Tools

Site Tools


docs:tips_n_tricks:xen.html

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
docs:tips_n_tricks:xen.html [25.04.2022 12:48 CEST] – [Create new DomU] peterdocs:tips_n_tricks:xen.html [13.08.2022 23:36 CEST] (current) – [Create new DomU] peter
Line 60: Line 60:
 </code> </code>
  
 +===== Matching physical and virtual Xen block (and other) devices and eventually their ids =====
  
 +  xenstore-ls -f -s /local/domain/0/backend/vbd | egrep '(domain|frontend|dev|params) = ' 
 +
 +
 +__References:__
 +
 +  * [[https://serverfault.com/a/259112|ukautz' answer]] to question [[https://serverfault.com/questions/153196/xen-find-vbd-id-for-physical-disks|"Xen find VBD id for physical disks" on Server Fault]].
 +  * https://xenbits.xen.org/docs/4.9-testing/man/xenstore-ls.1.html
 ===== Turn a domU into a new dom0 running with serial console ===== ===== Turn a domU into a new dom0 running with serial console =====
  
Line 101: Line 109:
 mkdir /GRUB0 mkdir /GRUB0
 mount LABEL="$HOSTNAME:GRUB0" /GRUB0/ mount LABEL="$HOSTNAME:GRUB0" /GRUB0/
-grub-install --boot-directory /GRUB0 /dev/sdb +grub-install --boot-directory /GRUB0 --recheck /dev/sdb 
-grub-install --boot-directory /GRUB0 /dev/sda+grub-install --boot-directory /GRUB0 --recheck /dev/sda
 </code> </code>
 <code grub /GRUB0/grub/grub.cfg> <code grub /GRUB0/grub/grub.cfg>
Line 198: Line 206:
  
 to ''/etc/default/grub'' to ''/etc/default/grub''
 +<note warning>If you install GRUB from the new Dom0, make sure no outdated ''device.map'' is lying around. Best use the ''--recheck'' option to ''grub-install''</note>
 Manual steps: Manual steps:
 <code bash> <code bash>
Line 233: Line 241:
 <code interfaces /etc/network/interfaces.d/ifrename> <code interfaces /etc/network/interfaces.d/ifrename>
 rename mac/00:16:3e:XX:XX:XX=vif0 rename mac/00:16:3e:XX:XX:XX=vif0
-# rename enpXsY=eth0 # use this if you expect the network card to be replaced by another one of same type+# rename mac/aa:bb:cc:??:??:??=eth0 # use this if you expect the network card to be replaced by another one of same type
 rename mac/aa:bb:cc:dd:ee:ff=eth0 rename mac/aa:bb:cc:dd:ee:ff=eth0
 </code> </code>
docs/tips_n_tricks/xen.html.1650883689.txt.gz · Last modified: 25.04.2022 12:48 CEST by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki