WHAT'S HOT
Prev | Current Page 42 | Next

Prabhakar Chaganti

"Xen Virtualization: A Practical Handbook"

gz > /boot/netbsd-XEN3_DOMU
2. Create a file image that will be used for storing our NetBSD guest domain.
# dd if=/dev/zero of=/home/pchaganti/xen-images/
netbsd_domU.img bs=1M count=300
3. Create the Xen configuration file that will be used to start up the
NetBSD domU.
cat > /home/pchaganti/xen-images/netbsd_domU.cfg << "EOF"
kernel = "/boot/netbsd-INSTALL_XEN3_DOMU"
memory = 64
name = "netbsd_domU"
disk = ['tap:aio:/home/pchaganti/xen-images
/netbsd_domU.img,sda1,w', 'tap:aio:/home/pchaganti/xen-
images/netbsd_swap.img,sda2,w']
vif = [ 'mac=00:16:3e:00:00:12, bridge=xenbr0' ]
EOF
4. Create the domU using xm.
xm create /home/pchaganti/xen-images/netbsd_domU.cfg -c
Chapter 3
[ 41 ]
This will start a console with the NetBSD installation.
5. Select the option to install to the hard disk.
6. Go through the installation using the instructions provided in the NetBSD
documentation:
http://www.netbsd.org/guide/en/chap-exinst.html
7. Select the minimum set of packages for installation because the file image we
are using as the backing store is only 300 MB. If you want to install a bigger
set of packages, please ensure that you increase the size of the file that we
created earlier.
Creating Virtual Machines
[ 42 ]
8. Once the installation is finished, there are still some configuration
related things to be done. So do not reboot. Select the option to go to the
Utility menu.
9. In the utility menu select the option to go the shell.
10.


Pages:
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54