1 |
On Thu, Jul 22, 2010 at 01:37:27PM +0200, Andrea Momesso wrote |
2 |
|
3 |
> And yes, I had read the AMD64 FAQs before installing, and I've been |
4 |
> happy with no-multilib for quita a while. I still have adobe flash |
5 |
> 10.0.45.2-r2 installed, but I understand it has serius security |
6 |
> problems, and I had to mask all higher versions. |
7 |
|
8 |
I had a similar situation. I use one Windows app, that runs in WINE. |
9 |
WINE will not build without multi-lib support on a 64-bit install. I |
10 |
ended up installing QEMU-KVM, and then a 32-bit Gentoo guest inside |
11 |
that. Having done it once, the second time would be a lot easier. I |
12 |
went with 10 gig "main" disk image, and a 2 gig swap disk image. A |
13 |
quick rundown... |
14 |
|
15 |
Remember to build qemu-kvm with the sdl USE flag if you want video. |
16 |
Otherwise, it becomes a VNC-only server. You could tunnel X over that |
17 |
if you want. |
18 |
|
19 |
Also make sure that the host's kernel has tun/tap support built in. |
20 |
Install dhcpcd in the guest, and let it take care of the IP address. |
21 |
|
22 |
Create disks |
23 |
============ |
24 |
|
25 |
qemu-img create -f raw g32_00_sda.img 10G |
26 |
qemu-img create -f raw g32_00_sdb.img 2G |
27 |
|
28 |
Boot the install CD image |
29 |
========================= |
30 |
By default, they come up as /dev/hdx for the install, and /dev/sdx |
31 |
when booting from the latest kernel. "You can't get from here to |
32 |
there". You cannot configure /etc/lilo.conf to boot from /dev/sda1 and |
33 |
write it to the boot sector of what is currently /dev/hda1. Note the |
34 |
weird parameters necessary to force the disk images to come up as |
35 |
/dev/sda and /dev/sdb for the install. |
36 |
|
37 |
The following is 1 long line |
38 |
|
39 |
kvm -redir tcp:5555::22 -m 2048 -drive file=g32_00_sda.img,if=scsi,bus=0,unit=6 -drive file=g32_00_sdb.img,if=scsi,bus=1,unit=6 -cdrom gentoo32.iso -boot d |
40 |
|
41 |
Start the guest after install |
42 |
============================= |
43 |
Do not be confused by the -hda and -hdb syntax, it actually comes up as |
44 |
/dev/sda and /dev/sdb |
45 |
|
46 |
kvm -localtime -startdate now -vga std -redir tcp:5555::22 -m 2048 -hda g32_00_sda.img -hdb g32_00_sdb.img -boot c |
47 |
|
48 |
|
49 |
I selected "-vga std" for the video emulation. I suggest the |
50 |
following 2 stps to generate maximum video resolution... |
51 |
1) As root, run "X -configure" to generate an initial xorg.conf |
52 |
2) Copy the horizontal and vertical sync settings from the host's |
53 |
xorg.conf to the guest's xorg.cong |
54 |
|
55 |
The "-redir tcp:5555::22" means that from the host, you can |
56 |
|
57 |
ssh -p 5555 user@localhost |
58 |
|
59 |
to ssh into the guest. Similarly... |
60 |
|
61 |
scp -P 5555 fubar.txt user@localhost:. |
62 |
|
63 |
will copy a file to account user on the guest. With dhcp, the guest |
64 |
can ssh/scp to the host, using its actual address (in my case |
65 |
192.168.123.249), or the name if you set up /etc/hosts. |
66 |
|
67 |
-- |
68 |
Walter Dnes <waltdnes@××××××××.org> |