Deprecated: Function set_magic_quotes_runtime() is deprecated in /DISK3/WWW/hej.cz/www/textpattern/lib/txplib_db.php on line 14 Hej: Ubuntu 8.10 DomU (kernel 2.6.27) na XEN (Dom0 je Ubuntu 8.04 LTS server)

Ubuntu 8.10 DomU (kernel 2.6.27) na XEN (Dom0 je Ubuntu 8.04 LTS server)

13.11.2008 03:46

Jedná se jen o pokračování předchozího postupu, doinstalování nového jádra z repozitářů Intrepidu a úprava konfigurace pro startování DomU

takže v spuštěném virtuálním stroji spustíme

apt-get install linux-virtual
#nebo linux-image-virtual nebo linux-image-2.6.27-7-virtual
shutdown -P now
#vypneme

Z Dom 0

mount /dev/sdf1 /mnt/debootintrepidU/
cd /mnt/debootintrepidU/
cp initrd.img-2.6.27-7-server System.map-2.6.27-7-server vmlinuz-2.6.27-7-server /boot/
umount /mnt/debootintrepidU/
nano intrepidtest

a upravíme že se má startovat nový kernel a také disky (kernel, ramdisk, disk a root)
nový /etc/xen/intre­pidtest vypadá takto:

#kernel = "/boot/vmlinuz-2.6.24-21-xen"
kernel = "/boot/vmlinuz-2.6.27-7-server"
#ramdisk = "/boot/initrd.img-2.6.24-21-xen"
ramdisk = "/boot/initrd.img-2.6.27-7-server"
memory = 512
cpus = "1-2,5"
vcpus = 3
#cpus a vcpus můžu vynechat, vezmou se defaulty (hraju si se syst. zdroji)
vif = [ 'mac=00:16:3E:43:EA:A1, bridge=xenbr0' ]
name = "intrepid1"
#disk = [ 'phy:/dev/sdf1,sda1,w','phy:/dev/sdf2,sda2,w'  ]
disk = [ 'phy:/dev/sdf1,xvda1,w','phy:/dev/sdf2,xvda2,w' ]
#root = "/dev/sda1 ro"
root = "/dev/xvda1 ro" .{color:green}
vfb = [ 'type=vnc,vnclisten=0.0.0.0,vncunused=1' ]
#pokud nepotřebuji grafiku tak vfb nepotřebuji definovat vůbec. S jiným typem framebufferu než VNC jsem zatím neměl úspěch
extra = 'xencons=tty'
#tohle extra bylo sakra důležité, vynutím si konzoli, jinak to vypadalo že se virtuál zasekne hned na init skriptech (teď už vidím že je to protože "Couldnt get a file descriptor referring to the console")
xm create -c intrepidtest

konzole sice opět nenabídne login prompt, (ukončíme ctrl + ] nebo rovnou vynecháme při spuštění -c) ale to nevadí, protože už mám funkční ssh i NX server, připojím se tudy, všechno jede.

Ještě jaké používám repozitáře (v DomU) mimo výchozího main
(překopírováno z Hardyho, upraveno pro Intrepid )
cat /etc/apt/sources.list

deb http://archive.ubuntu.com/ubuntu intrepid main

deb http://cz.archive.ubuntu.com/ubuntu/ intrepid main restricted
deb-src http://cz.archive.ubuntu.com/ubuntu/ intrepid main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://cz.archive.ubuntu.com/ubuntu/ intrepid-updates main restricted
deb-src http://cz.archive.ubuntu.com/ubuntu/ intrepid-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://cz.archive.ubuntu.com/ubuntu/ intrepid universe
deb-src http://cz.archive.ubuntu.com/ubuntu/ intrepid universe
deb http://cz.archive.ubuntu.com/ubuntu/ intrepid-updates universe
deb-src http://cz.archive.ubuntu.com/ubuntu/ intrepid-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://cz.archive.ubuntu.com/ubuntu/ intrepid multiverse
deb-src http://cz.archive.ubuntu.com/ubuntu/ intrepid multiverse
deb http://cz.archive.ubuntu.com/ubuntu/ intrepid-updates multiverse
deb-src http://cz.archive.ubuntu.com/ubuntu/ intrepid-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://cz.archive.ubuntu.com/ubuntu/ intrepid-backports main restricted universe multiverse
# deb-src http://cz.archive.ubuntu.com/ubuntu/ intrepid-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository. This software is not part of Ubuntu, but is
## offered by Canonical and the respective vendors as a service to Ubuntu
## users.
# deb http://archive.canonical.com/ubuntu intrepid partner
# deb-src http://archive.canonical.com/ubuntu intrepid partner

deb http://security.ubuntu.com/ubuntu intrepid-security main restricted
deb-src http://security.ubuntu.com/ubuntu intrepid-security main restricted
deb http://security.ubuntu.com/ubuntu intrepid-security universe
deb-src http://security.ubuntu.com/ubuntu intrepid-security universe
deb http://security.ubuntu.com/ubuntu intrepid-security multiverse
deb-src http://security.ubuntu.com/ubuntu intrepid-security multiverse
Martin Kiklhorn

,

---

Komentář

Komentáře jsou uzavřeny

---