Difference between revisions of "Network/Procedures/Create a Makers Local VM host"
From Makers Local 256
< Network
m (dsajf098jew9) |
(done?) |
||
Line 27: | Line 27: | ||
dpkg-divert --divert /etc/grub.d/08_linux_xen --rename /etc/grub.d/20_linux_xen | dpkg-divert --divert /etc/grub.d/08_linux_xen --rename /etc/grub.d/20_linux_xen | ||
</code> | </code> | ||
+ | |||
+ | * Set up your drbd volumes in /etc/drbd.d to mirror to whatever other VM host. Then reload drbd and kick off your syncs. | ||
+ | <code> | ||
+ | scp vm2:/etc/drbd.d/* /etc/drbd.d/ | ||
+ | service drbd restart | ||
+ | </code> | ||
+ | |||
+ | * While that's moving, copy your Xen configs from another VM host. | ||
+ | <code> | ||
+ | scp vm2:/etc/xen/*.cfg /etc/xen/ | ||
+ | </code> | ||
+ | |||
+ | That's probably not exactly right but it's something like that. Good luck. |
Revision as of 17:38, 13 January 2015
- Create this disk layout.
Number Start End Size Type File system Flags
1 1049kB 48.0GB 48.0GB primary ext4 boot
2 48.0GB 50.0GB 2000MB primary linux-swap(v1)
3 50.0GB (rest of disk) primary lvm
- Make a new volume group called vm4_storage and include partition 3 as the first PV.
- Run this on an existing VM host to get a list of packages to copy to the new host.
dpkg --get-selections > vmhost.dpkg-selections
- After copying that file to the new host, do this on the new host to install those packages.
sudo apt-get install dselect
sudo dselect update
sudo dpkg --set-selections < vmhost.dpkg-selections
sudo apt-get -y update
sudo apt-get dselect-upgrade
- Make xen boot instead of linux.
dpkg-divert --divert /etc/grub.d/08_linux_xen --rename /etc/grub.d/20_linux_xen
- Set up your drbd volumes in /etc/drbd.d to mirror to whatever other VM host. Then reload drbd and kick off your syncs.
scp vm2:/etc/drbd.d/* /etc/drbd.d/
service drbd restart
- While that's moving, copy your Xen configs from another VM host.
scp vm2:/etc/xen/*.cfg /etc/xen/
That's probably not exactly right but it's something like that. Good luck.