Nethence Documentation Lab Webmail Your IP BBDock  


Those documents are obsolete, please use the Nethence Documentation instead.

HomeUnixWindowsOracleObsoleteHardwareDIYMechanicsScriptsConfigsPrivate

Setting up XEN guests on a NetBSD/XEN dom0
 
Creating a guest
cd /
wget "http://ftp.fr.netbsd.org/pub/NetBSD/NetBSD-7.0.1/amd64/binary/kernel/netbsd-INSTALL_XEN3_DOMU.gz"
wget "http://ftp.fr.netbsd.org/pub/NetBSD/NetBSD-7.0.1/amd64/binary/kernel/netbsd-XEN3_DOMU.gz"
mv netbsd-INSTALL_XEN3_DOMU.gz netbsd-701-INSTALL_XEN3_DOMU.gz
mv netbsd-XEN3_DOMU.gz netbsd-701-XEN3_DOMU.gz
 
lvm pvcreate /dev/rsd1d
lvm vgcreate guestsvg "/dev/rsd1d"
lvm lvcreate -n netbsdguest1 -L 5G guestsvg
 
/usr/pkg/share/examples/xen/
 
kernel = "/netbsd-701-INSTALL_XEN3_DOMU.gz"
memory = 256
name = "netbsdguest1"
vcpus = 2
disk = [
'phy:/dev/mapper/guestsvg-netbsdguest1,0x03,w',
'file:/root/NetBSD-7.0.1-amd64.iso,0x04,r'
]
vif = [ 'bridge=bridge0' ]
root = "/dev/wd0d"
 
 
References
https://wiki.netbsd.org/guide/lvm/
https://wiki.netbsd.org/tutorials/how_to_use_lvm_on_netbsd/

Last update: Jun 16, 2016