Wuhai’s Weblog

February 8, 2009

Virtualbox add disk to Solaris10 x64 guest

Filed under: Solaris, vm — wuhai @ 6:01 am
1. Add the disk via Virtualbox GUI;
2. In Solaris10: #touch /reconfigure
3. reboot -- -r

February 1, 2009

First time with OpenVZ

Filed under: openvz, vm — wuhai @ 10:07 am

I installed OpenVZ kernel and utils under Centos5 guest in VirtualBox (running under WinXP) tonight, following the installation guide.

To install Debian 4.0-x86 guest using OpenVZ:

cd /vz/template/cache
wget http://download.openvz.org/template/precreated/debian-4.0-x86.tar.gz

vzctl create 101 –ostemplate debian-4.0-x86
vzctl set 101 –ipadd 10.0.2.18 –save
vzctl set 101 –nameserver 10.0.2.3 –save
vzctl start 101

vzctl exec 101 ps ax

vzctl enter 101
ipup venet0:0
/etc/network/interfaces:15: interface lo declared allow-auto twice
ifup: couldn’t read interfaces file “/etc/network/interfaces”

To temporarily fix above: comment out lines 15-16 in file “/etc/network/interfaces”.
To permanently fix above: comment out all lines in file “/etc/network/interfaces.template”

/etc/init.d/networking start

Blog at WordPress.com.