Install Ubuntu 9.10 JeOS, RC

Bookmark and Share

Ubuntu 9.10 (Karmic Koala) is now under "Release Candidate" state and will be released at two days later released today! but since I cannot wait more, or already enoughly waited, Today I started to build new virtual machine with it. (as development base of sodor.)

This is story about it.

Installation and Configuration

Currently I usually build virtual machine with raw disk image. it is smaller than qcow image, maybe faster than, and can use hole of file system(sparse mode), and more portable. oh, and it also can be a base of snapshot image.

Installation Script

If needed.

Install process

Setup virtual machine with script.

sio4@jangseung:/box/vms$ ./create-vm.sh 
name of vm: vios-tscope
size of ram: 512
number of cpus: 2
path of cdrom: /box/isos/ubuntu/ubuntu-9.10-server-amd64.iso
disk size of sys: 4
disk size of opt: 8
Formatting '/box/vms/vios-tscope/vios-tscope-sys.img', fmt=raw, size=4194304 kB
Formatting '/box/vms/vios-tscope/vios-tscope-opt.img', fmt=raw, size=8388608 kB
Connecting to uri: qemu:///system
Domain vios-tscope defined from /box/vms/vios-tscope/vios-tscope.xml

sio4@jangseung:/box/vms$ ls -lh vios-tscope/*
-rw-r--r-- 1 sio4 sio4 8.0G 2009-10-30 02:28 vios-tscope/vios-tscope-opt.img
-rw-r--r-- 1 sio4 sio4 4.0G 2009-10-30 02:28 vios-tscope/vios-tscope-sys.img
-rw-r--r-- 1 sio4 sio4 1.3K 2009-10-30 02:28 vios-tscope/vios-tscope.xml
sio4@jangseung:/box/vms$ du -h vios-tscope/*
0    vios-tscope/vios-tscope-opt.img
0    vios-tscope/vios-tscope-sys.img
4.0K    vios-tscope/vios-tscope.xml
sio4@jangseung:/box/vms$ tar -zcSv -f vios-tscope-setup.tar.gz vios-tscope/
vios-tscope/
vios-tscope/vios-tscope-opt.img
vios-tscope/vios-tscope.xml
vios-tscope/vios-tscope-sys.img
sio4@jangseung:/box/vms$ ls -l vios-tscope-setup.tar.gz 
-rw-r--r-- 1 sio4 sio4 714 2009-10-30 02:30 vios-tscope-setup.tar.gz
sio4@jangseung:/box/vms$

then, start virtual machine:

sio4@jangseung:/box/vms$ virt-viewer -c qemu:///system --wait vios-tscope &
[1] 24077
sio4@jangseung:/box/vms$ virsh start vios-tscope
Connecting to uri: qemu:///system
Domain vios-tscope started

sio4@jangseung:/box/vms$

maybe reboot after installation will be failed. then do this:

sio4@jangseung:/box/vms$ virsh destroy vios-tscope
Connecting to uri: qemu:///system
Domain vios-tscope destroyed

sio4@jangseung:/box/vms$ vi vios-tscope/vios-tscope.xml 
(edit boot device)
sio4@jangseung:/box/vms$ tar zScvf vios-tscope-just-installed.tar.gz vios-tscope
vios-tscope/
vios-tscope/vios-tscope-opt.img
vios-tscope/vios-tscope.xml
vios-tscope/vios-tscope-sys.img
sio4@jangseung:/box/vms$  ls -lh vios-tscope-just-installed.tar.gz
-rw-r--r-- 1 sio4 sio4 212M 2009-10-30 03:10 vios-tscope-just-installed.tar.gz
sio4@jangseung:/box/vms$ du -sh vios-tscope/*
351M    vios-tscope/vios-tscope-opt.img
612M    vios-tscope/vios-tscope-sys.img
4.0K    vios-tscope/vios-tscope.xml
sio4@jangseung:/box/vms$

and then again,

sio4@jangseung:/box/vms$ virsh define vios-tscope/vios-tscope.xml 
Connecting to uri: qemu:///system
Domain vios-tscope defined from vios-tscope/vios-tscope.xml

sio4@jangseung:/box/vms$ virt-viewer -c qemu:///system --wait vios-tscope &
[1] 5763
sio4@jangseung:/box/vms$ virsh start vios-tscope
Connecting to uri: qemu:///system
Domain vios-tscope started

sio4@jangseung:/box/vms$

Bookmark and Share


따로 명시하지 않는 한에서 이 사이트의 모든 콘텐츠는 다음의 라이선스를 따릅니다: Creative Commons Attribution-NonCommercial 3.0 License