Version 4 (modified by 12 years ago) (diff) | ,
---|
Notes from Upgrading to Ubuntu 12.04 from 10.04
The new VMs
Upgraded the VM instance by swapping in an Ubuntu 10.04 image (the pre-upgrade version) and installing a new 12.04 i386 install. Special things I did:
- Used a hardware type that supports virtualization -
pc2133
- Used tb-allow-external to allow the Ubuntu install to proceed. It expects external connectivity.
- I added the Ubunutu 10.04 image to the list of images allowed to access external hosts temporarily to do this
- The image file itself was created using
$ qemu-img create -f qcow2 /tmp/pangolin.img 10G
To do the install on an X window I needed to log into the DETER node hosting qemu using
$ ssh -Y pc055
Once I had a bootable image, I booted it, logged in, and changed /etc/apt/sources.list
to point to scratch instead of the various ubuntu and cannonical sources. After the substitutions there were 2 duplicates that I commented out.
It's important to make the configuration user something that won't need to be overwritten by experiments. I used toor
, well after I remembereed this.
The defaulty /etc/resolve.conf
doesn't resolve scratch, so I copied one from the host on which QEMU was running.
After this sudo apt-get update
succeeds.
Ubuntu doesn't enable sshd by default. Be sure to:
$ apt-get install openssh-server
Shut down the VM and store the image on scratch
$ scp pangolin.img scratch:/var/www/benito
QEMU software
The default Ubuntu QEMU install does not support VDE, which is clearly a problem.
This is easy enough to fix using the instructions for rebuilding a debina package
- apt-get the source for
qemu-kvm
and the supporting tools - modify
debian/rules
to include--enable-vde
in the configure call - use debuild as above to make a new .deb
Move the debs - more than one gets created - into /share/benito/packages/hv:qemu_packages
and adjust /share/benito/etc/hv:qemu_packages
accordingly
There were custom debs for vde as well, but they are commented as fixing an overflow in i386. This install is for amd64 so we'll try the stock vde packages.
The sources are in ~mikeryan/dev/benito/vde
but the changes were not completely clear.
Attachments (8)
-
control (456 bytes) - added by 12 years ago.
Debian control for vde2
-
copyright (161 bytes) - added by 12 years ago.
COpyright from vde2
-
rules (586 bytes) - added by 12 years ago.
rules for vde2
-
fix-capture_nested.patch (1.5 KB) - added by 12 years ago.
Move calloc
-
fix-forwarding.patch (417 bytes) - added by 12 years ago.
Turn on IP forwarding in lwip stack
-
fix-um_exec.patch (298 bytes) - added by 12 years ago.
Turn off binfmt checking (interferes with interperted scripts!?)
-
patch (5.6 KB) - added by 12 years ago.
unified patch against viewos 1090
-
patch-all2.patch (5.8 KB) - added by 12 years ago.
more complete all parts patch
Download all attachments as: .zip