docs:tips_n_tricks:xen.html
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
docs:tips_n_tricks:xen.html [16.04.2022 18:40 CEST] – [Further reading] peter | docs:tips_n_tricks:xen.html [13.08.2022 23:36 CEST] (current) – [Create new DomU] peter | ||
---|---|---|---|
Line 21: | Line 21: | ||
===== Create new DomU ===== | ===== Create new DomU ===== | ||
//Assuming, you have a bridge //xenbr0// up and running on your Dom0 with 10.1.0.1 beeing the outbound gateway and a disk partitioning scheme defined in// ''/ | //Assuming, you have a bridge //xenbr0// up and running on your Dom0 with 10.1.0.1 beeing the outbound gateway and a disk partitioning scheme defined in// ''/ | ||
+ | |||
+ | * create ''/ | ||
+ | * run '' | ||
<code bash create_guest.sh> | <code bash create_guest.sh> | ||
Line 52: | Line 55: | ||
</ | </ | ||
+ | <code authorized_keys / | ||
+ | # replace 202204260000 by some day in the near future and add your own sshkey | ||
+ | expiry-time=" | ||
+ | </ | ||
+ | |||
+ | ===== Matching physical and virtual Xen block (and other) devices and eventually their ids ===== | ||
+ | |||
+ | xenstore-ls -f -s / | ||
+ | |||
+ | |||
+ | __References: | ||
+ | |||
+ | * [[https:// | ||
+ | * https:// | ||
===== Turn a domU into a new dom0 running with serial console ===== | ===== Turn a domU into a new dom0 running with serial console ===== | ||
Line 92: | Line 109: | ||
mkdir /GRUB0 | mkdir /GRUB0 | ||
mount LABEL=" | mount LABEL=" | ||
- | grub-install --boot-directory /GRUB0 /dev/sdb | + | grub-install --boot-directory / |
- | grub-install --boot-directory /GRUB0 /dev/sda | + | grub-install --boot-directory / |
</ | </ | ||
<code grub / | <code grub / | ||
Line 164: | Line 181: | ||
dhcp = ' | dhcp = ' | ||
- | vif = [ ' | + | vif = [ ' |
</ | </ | ||
==== Attach network to domU ==== | ==== Attach network to domU ==== | ||
Line 189: | Line 206: | ||
to ''/ | to ''/ | ||
+ | <note warning> | ||
Manual steps: | Manual steps: | ||
<code bash> | <code bash> | ||
Line 217: | Line 234: | ||
sysctl -w net.ipv4.conf.all.forwarding=1 | sysctl -w net.ipv4.conf.all.forwarding=1 | ||
+ | === Make network card names persistent with your own (traditional) naming scheme === | ||
+ | //In domU connected to external interface// | ||
+ | == The ifupdown way == | ||
+ | * Give parameeter '' | ||
+ | * Use '' | ||
+ | <code interfaces / | ||
+ | rename mac/ | ||
+ | # rename mac/ | ||
+ | rename mac/ | ||
+ | </ | ||
+ | == The systemd way == | ||
+ | <code properties / | ||
+ | # https:// | ||
+ | [Match] | ||
+ | MACAddress=aa: | ||
+ | |||
+ | [Link] | ||
+ | Name=eth0 | ||
+ | </ | ||
+ | |||
+ | <code properties / | ||
+ | # https:// | ||
+ | [Match] | ||
+ | MACAddress=00: | ||
+ | |||
+ | [Link] | ||
+ | Name=vif0 | ||
+ | </ | ||
+ | === Use persistent name in / | ||
+ | |||
+ | <code interfaces / | ||
+ | auto vif0 | ||
+ | iface vif0 inet static | ||
+ | | ||
+ | | ||
+ | </ | ||
==== Allow ssh root login ==== | ==== Allow ssh root login ==== | ||
<code text / | <code text / | ||
Line 233: | Line 286: | ||
* Bugs I encountered | * Bugs I encountered | ||
* [[https:// | * [[https:// | ||
- | * Workaround: Fixed that by downgrading to Xen 4.11 from Debian Buster | + | * Workaround: Fixed that by downgrading to Xen 4.11 from Debian Buster |
* [[https:// | * [[https:// | ||
- | * Workaround: Do not use '' | + | * Workaround: Do not use '' |
* [[http:// | * [[http:// | ||
- | * Workaround: Don't reboot domU with PCI passthrough - shutdown and boot instead. | + | * Workaround: Don't reboot domU with PCI passthrough - shutdown and boot instead.8-) |
docs/tips_n_tricks/xen.html.1650127224.txt.gz · Last modified: 16.04.2022 18:40 CEST by peter