| | 58 | $ sudo cp -r /lib/modules/2.6.18-6-xen-686/ /mnt/lib/modules/ |
| | 59 | |
| | 60 | $ sudo chroot /mnt |
| | 61 | $ passwd root |
| | 62 | $ adduser rock |
| | 63 | $ sudo umount /mnt |
| | 64 | }}} |
| | 65 | [[BR]] |
| | 66 | * Edit Guest OS configuration |
| | 67 | {{{ |
| | 68 | $ sudo vim /home/xen_img/etch.cfg |
| | 69 | # Kernel image |
| | 70 | kernel = "/boot/vmlinuz-2.6.18-6-xen-686" |
| | 71 | ramdisk = "/boot/inird.img-2.6.18-6-xen-686" |
| | 72 | # Domain name |
| | 73 | name = "etch" |
| | 74 | # 0achine information |
| | 75 | vcpus = 4 |
| | 76 | memory = 256 |
| | 77 | disk = ['file:/home/xen_img/etch.img,hda1,w','file:/home/xen_img/etch.swap,hda2,w'] |
| | 78 | vif = ['mac=00:00:00:00:00:01,bridge=xenbr1'] |
| | 79 | }}} |
| | 80 | * Guest OS problem |
| | 81 | {{{ |
| | 82 | $ mount /home/xen_img/etch.img /mnt |
| | 83 | $ chroot /mnt |
| | 84 | |
| | 85 | 4gb seg fixup problem: |
| | 86 | $ aptitinstall libc6-xen |
| | 87 | |
| | 88 | locale problem: |
| | 89 | $ aptitinstall install locales |
| | 90 | $ dpkg-reconfigure -a locale |
| | 91 | $ tzxonfig |