Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12
Hello, I have fully reinstalled all my distros and got the wireless and flash player working. Now I am looking forward to this long desire of learning how to install ...
  1. #1
    Linux Engineer nujinini's Avatar
    Join Date
    Apr 2009
    Location
    An Island in the Pacific!
    Posts
    1,225

    [SOLVED] How to Install (Sandbox) XP In Debian Lenny

    Hello,

    I have fully reinstalled all my distros and got the wireless and flash player working.

    Now I am looking forward to this long desire of learning how to install XP in a virtual machine in Debian.

    I learned that if I put XP in a "sandbox" or a VM? not quite sure, I will also be protecting my system in case of another virus problem. I heard this will make XP run a little slower but frankly, I don't mind since I am not a gamer and I will just use it only if somebody wants to borrow my laptop and only knows how to use windows. (XP) For browsing and emails and some of those basic stuffs.

    May I request for guidance on how I can achieve this please?

    Thank you very much.

  2. #2
    Linux Engineer GNU-Fan's Avatar
    Join Date
    Mar 2008
    Posts
    935
    Install QEMU from the Debian repositories.
    Then create a virtual hard disk file with sufficent space for the install.
    Lastly, tell QEMU to use your real physical CDROM as the virtual CDROM drive for emulation. Insert the install disc and start QEMU.

    QEMU


    PS: I think you were better of to customize KDE to look and operate similar to Windows for these users.
    Debian GNU/Linux -- You know you want it.

  3. #3
    Linux Engineer nujinini's Avatar
    Join Date
    Apr 2009
    Location
    An Island in the Pacific!
    Posts
    1,225
    Quote Originally Posted by GNU-Fan View Post
    Install QEMU from the Debian repositories.
    Then create a virtual hard disk file with sufficent space for the install.
    Lastly, tell QEMU to use your real physical CDROM as the virtual CDROM drive for emulation. Insert the install disc and start QEMU.

    QEMU


    PS: I think you were better of to customize KDE to look and operate similar to Windows for these users.
    Hello!

    Trying to install XP in Debian using QEMU is also interesting for me since I would like to learn and experience this procedure.

    However, your PS re customizing KDE to look and operate similar to Windows also caught my fancy. I will be starting a separate thread regarding this.

    Thank you!

  4. #4
    Linux Engineer nujinini's Avatar
    Join Date
    Apr 2009
    Location
    An Island in the Pacific!
    Posts
    1,225
    First, I have installed QEMU from the Debian repos.

    Second I went to number 2 of instructions from the QEMU Quickstart guide of the link. (Windows or Linux guest on Linux host)

    I made a 6G preparation w/c seems to be ok:
    Code:
    jun@debian:~$ sudo qemu-img create -f qcow harddisk.img 6G
    Formatting 'harddisk.img', fmt=qcow, size=6291456 kB
    Then I proceeded to instruction 3 and inserted XP installation disk to cd drive & I got this.
    Code:
    jun@debian:~$ qemu -cdrom /dev/cdrom -hda c.img -m 256 -boot d
    qemu: could not open disk image c.img
    I tried to change -hda to -sda since I notice thats the way my partitions are read.
    Code:
    jun@debian:~$ qemu -cdrom /dev/cdrom -sda c.img -m 256 -boot d
    qemu: invalid option -- '-sda'
    jun@debian:~$

  5. #5
    Linux Engineer GNU-Fan's Avatar
    Join Date
    Mar 2008
    Posts
    935
    Quote Originally Posted by nujinini View Post
    Then I proceeded to instruction 3 and inserted XP installation disk to cd drive & I got this.
    Code:
    jun@debian:~$ qemu -cdrom /dev/cdrom -hda c.img -m 256 -boot d
    qemu: could not open disk image c.img
    Well, the disk image you have created has the name harddisk.img, doesn't it?
    Why do call it "c.img" then?


    Quote Originally Posted by nujinini View Post
    I tried to change -hda to -sda since I notice thats the way my partitions are read.
    Code:
    jun@debian:~$ qemu -cdrom /dev/cdrom -sda c.img -m 256 -boot d
    qemu: invalid option -- '-sda'
    jun@debian:~$
    The "-hda xyz.img" option is a parameter of the program QEMU. It means "the first virtual hard drive is the image: 'xyz.img'". This has nothing to do with which devices you use on your host.
    Debian GNU/Linux -- You know you want it.

  6. #6
    Linux Engineer nujinini's Avatar
    Join Date
    Apr 2009
    Location
    An Island in the Pacific!
    Posts
    1,225
    Code:
    jun@debian:~$ sudo qemu-img create -f qcow harddisk.img 6G
    Formatting 'harddisk.img', fmt=qcow, size=6291456 kB

    Code:
    jun@debian:~$ qemu -cdrom /dev/cdrom -hda c.img -m 256 -boot d
    qemu: could not open disk image c.img
    Code:
    Well, the disk image you have created has the name harddisk.img, doesn't it?
    Why do call it "c.img" then?
    Ohhh...thanks. Very sorry did not notice that Thank you for pointing it out.

  7. #7
    Linux Engineer nujinini's Avatar
    Join Date
    Apr 2009
    Location
    An Island in the Pacific!
    Posts
    1,225
    Code:
    To install Windows XP on the partition you selected
    Setup must write some startup files to the following disk:
    
    6143  MB Disk 0 at Id 0 on bus 0 on atapi (MBR)
    
    However, this disk does not contain a Windows XP-compatible 
    partition.
    I can't continue from here. Do you think since my Debian is ext3 and XP is on ntfs its causing this problem?

  8. #8
    Linux Engineer nujinini's Avatar
    Join Date
    Apr 2009
    Location
    An Island in the Pacific!
    Posts
    1,225
    I also get this after i execute:

    Code:
    jun@debian:~$ qemu -cdrom /dev/cdrom -hda harddisk.img -m 256 -boot d
    Could not open '/dev/kqemu' - QEMU acceleration layer not activated: No such file or directory
    jun@debian:~$
    However, a window opens and starts to execute an XP installtion. Until I reach the blue screen w/c gave me the message I posted earlier.

  9. #9
    Linux Engineer GNU-Fan's Avatar
    Join Date
    Mar 2008
    Posts
    935
    Debian GNU/Linux -- You know you want it.

  10. #10
    Linux Engineer nujinini's Avatar
    Join Date
    Apr 2009
    Location
    An Island in the Pacific!
    Posts
    1,225
    The XP installation went on smoothly. However, I closed the window and now I do not know how to boot it again.

    The guide says execute

    Code:
    qemu -hda xp.img -boot c
    This is what I get instead

    Code:
    jun@debian:~$ qemu -hda xp.img -boot c
    qemu: could not open disk image xp.img
    jun@debian:~$ sudo qemu -hda xp.img -boot c
    qemu: could not open disk image xp.img
    jun@debian:~$ su
    Password:
    debian:/home/jun# qemu -hda xp.img -boot c
    qemu: could not open disk image xp.img
    debian:/home/jun#

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •