Archive for the ‘Linux’ Category.

Is it possible to have Dovecot imap/pop daemons listening on multiple ports?

No, not in the current stable release. But there are workarounds, eg using your firewall to redirect incoming traffic to a given port.

# Example IPTABLES, REDIRECT INCOMING CONNECTION ON PORT 9292 TO DEFAULT POP3 PORT

iptables -t nat -A PREROUTING -p tcp -m tcp –dport 9292 -j REDIRECT –to-port 110

Transparent Proxy Squid 3

The only thing to be done in squid.conf is:

adding the “transparent” at the end of the http_port directive

http_port 3128 transparent

and of course redirecting the traffic to the port of the proxy with a suitable iptables rule. Something like (assuming 192.168.0.1 is your proxy’s LAN IP address):

iptables -t nat -A PREROUTING -i eth1 -p tcp -m tcp --dport 80 -j DNAT --to-destination 192.168.0.1:3128
iptables -t nat -A PREROUTING -i eth0 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 3128

Tunneling SMB over SSH: Secure file sharing

Suppose you’re at an open wireless hotspot and wish to connect the Samba server from your Windows laptop, but you don’t want to send data (documents, authentication hashes etc.) over the air in plain text.

Using SSH tunnels, you can encrypt all your network traffic and redirect it through a trusted computer when you’re connected to an untrusted network. The goal of this hack is to enable Windows users securely access shared files on any Samba server.

So, what are SSH Tunnels? In addition to providing remote shell access and command execution, SSH servers can forward ports to the other end of your connection. This can be extremely useful to protect any traffic that you need to keep private. In a nutshell, it is accomplished by binding to a local port, encrypting the traffic, sending the encrypted data to the remote machine, and then decrypting it and sending it to the remote host and port you specify.

Samba and Windows use port 139 for file sharing. At first glance, it seems that the easy solution is to tunnel connections from port 139 on your Windows computer to the Samba server. Then you can easily connect to the remote share by connecting to “localhost”. But since Windows always uses port 139 for file sharing, you must disable local file sharing to make the port forwarding.

So, how do we tunnel SMB over SSH and keep local file sharing working? We’re going to use a virtual network adapter. Basically, a virtual network adapter is a software application that allows a computer to connect to a network. We’re going to add a virtual adapter to our Windows computer and create a SSH tunnel over the virtual interface.

To add a virtual network adapter in Windows, use the following steps:

  1. In the Control Panel click on Add Hardware.
  2. In the Add Hardware Wizard, select “Yes, I have already connected the hardware” and click Next. Scroll down the list and click on “Add a new hardware device”.
  3. Select “Install the hardware that I manually select from a list”. From the hardware types, select Network Adapters and choose Microsoft Loopback Adapter.
  4. Go through the installation procedure.

The next step is to configure the new virtual adapter.

  1. Go to Network Connections configuration panel.
  2. Right click on the Microsoft Loopback Adapter and select Properties.
  3. Select Internet Protocol (TCP/IP) and click on the Properties button.
  4. Check “Use the following IP address” option and enter the chosen IP address (e.g. 10.0.0.1) and the subnet mask (255.255.255.0). If you have a gateway and DNS servers in your network, enter them too.
  5. Click on the Advanced button and in the WINS tab, select “Disable NetBIOS over TCP/IP”.

Setup the SSH Tunnel

Now that you have a properly configured virtual adapter, it’s time to setup the SSH tunnel between the Samba server and your computer. We assume that OpenSSH is already running on the Samba server. For the SSH client software we’re going to use Putty, a free SSH client that supports port forwarding.

Fire up Putty on your computer and enter the host name or IP address of your Samba server (e.g. 192.168.0.104). In the Tunnels options, in the “Source port” type 10.0.0.1:139 (the IP we used in our example) and in the “Destination” type 127.0.0.1:139. Click on “Add” and then “Open”. Once you authenticate, you’re ready to access the Samba server over the virtual adapter.

To test your SSH tunnel, just navigate from Windows explorer to \\10.0.0.1. If everything goes well, you’d prompted to enter a username and password to access the shares. Enjoy!

smb-ssh-share.jpg

When things go wrong

If things don’t work, make sure that both Samba and Putty are running and properly configured. If you’re running Windows XP SP2 in a closed environment (no access to the Internet for updates), make sure to install KB884020.

How to securely erase the hard disk

It is scary to realize that it is next to impossible to delete all the data that one stores on ones storage media without completely destroying it. Because, with the right tools anybody can retrieve even deleted data.

So what can be done to alleviate the situation ? If you are using GNU/Linux or any other UNIX, then you have a tool called shred which can be used to wipe all the data from the hard disk. Here is how it works. Suppose I want to erase all the data on my hard disk, then I boot using a LiveCD like Knoppix and open a shell and type the following command:

# shred -vfz -n 100 /dev/hda 

Here /dev/hda is my whole hard disk. And I am asking shred to make (-n) 100 passes by overwriting the entire hard disk with (-z) zeros. And shred program (-f) forces the write by changing the permissions wherever necessary.

Another GPLed tool (though not specifically related to Linux) which is quite popular is Darik’s Boot and Nuke (DBAN) which also does a swell job of wiping ones hard disk.

It is claimed that experts in the field of retrieving data can still get some data from a hard disk that has been wiped in the above manner. But atleast lesser mortals who buy second hand laptops and computers will find it beyond their means to lay their hands on the data.

 

 

Screen? A must for SSH

First some basic cheats, so you don’t have to search through the whole post:

ctrl+a+c                                               make a new screen
ctrl+a+n                                               next screen down the line
ctrl+a+p                                               previous screen down the line
ctrl+a+k                                               kills current screen until last one then you’re out
ctrl+a+d                                               leave, but leave them running and re-attachable

screen -ls                                            31619.something.else (Detached)
screen -r 31619.something.else       re-attaches to that session

screen -DDR                                     to re-attach any (the first) detached session.
If there is none, it creates a new session.

If you’ve ever used SSH to connect to a server, you ‘ll know its limitations: if you want to open a new window, you’ll need to create a second SSH connection to the server. And if the connection breaks during the SSH tunnel, you’ve lost your progress. This is where Screen comes in.

Screen, which calls itself a “full-screen window manager that multiplexes a physical terminal between several processes (typically interactive shells).” is a usefull tool to use 1 SSH connection, but use multiple screens to work in. So you can have 1 screen to write some scripts in, another to tail a logfile and a third to check your IRC messages ;-)

Screen is installed by default on most installations, you can verify this by running the “which screen” command. If it’s not installed, try to apt-get or yum it – it’s in most repositories.

You can start screen by typing:

[root@vps ~]# screen

This makes sense, right? :-)
You’ll probably notice that not much happens if you type that. At least, it seems like not much as happened. In fact, you’ve just opened a new “screen” to type your commands. The program “screen” has a few commands of its own, in order to create a new window, and navigate through the open ones.

Once you’ve opened “screen“, you can see a command list by typing “CTRL + A”, followed by “?” (the question mark). By typing “CTRL + A” you state that the next signal is to be sent to the program “screen“, in stead of to the Shell (like you would in a normal shell). You’ll see a list of all bindings known to “screen“.

Start a new window by typing “CTRL + A” + “c”. The C stands for Create – I know, too obvious. A new window will be created. In order to test this, type the command “top”. Then create a new window, by using “CTRL + A” + “c”. You’ll see top disappear, and a new window will open. Type in some commands of your choice, and return to the previous window, by doing “CTRL + A” + “n”. The “n” stands for “Next”, and will open the next screen. “CTRL + A” + “p” would’ve opened the previous screen.

Closing a window, can be done by typing “exit” (like you would in a normal shell). This will cause you to fall back to the previous monitor you opened, or to your main prompt – where you started screen, showing you a message such as “[screen is terminating]” – so you’ll know you’ve hit the main shell.

The biggest advantage in using screen, is that you can “detach” a screen-session. This means you return to the normal shell, but the processes started in “screen” are still active in the background. You can detach yourself by typing “CTRL + A” + “d”. Again, obvious that “D” stands for Detach. This gives you more flexibility for managing your server(s): you can start a number of processes, quietly exit the shell and return a couple of hours later to pick up the session started in screen.

Should you disconnect by accident, during a screen-session, you can always pick up a previous screen by relogging to shell and typing “screen -ls“. This will show a list of all running screen-sessions at any given time. You can pick up a previous screen-session, by typing “screen -r <name_of_session>“.

Probably known to most linux-administrators, but still an awesome tool :-)

Re-printed (so we don’t loose the information) from:

http://www.mattiasgeniar.be/2008/06/04/screen-a-must-for-ssh/

Basic Linux Commands

Concepts Files & directories

  • Everything is a file
  • 256 characters maximum
  • Case sensitive
  • Special characters
    • Begin with . (period)
    • Don’t use /, ?, *, -
    • Avoid spaces; use underscores instead
  • Extension not necessary

File system

  • Hierarchical tree
  • No drive letters
  • Starts at root with /

Getting Information

man

man [command]

Within man:

  • spacebar/f = forward
  • b = back
  • q = quit
  • / = search forward
  • ? = search backward
  • n = repeat search

info

info [command]

info info
Enter ‘m’ & enter program name

Viewing Files

cat
Display file to STDOUT

cat [file]

more or less
Display STDOUT screen by screen

more [file]
less [file]

Within more:

  • spacebar/f = forward
  • b = back
  • q = quit

ls | less

head
View the first lines of a text file

head file.txt = show first 10 lines of file

head -25 file.txt = show first 25 lines of file

tail
View the last lines of a text file

tail file.txt = show last 10 lines of file

tail -25 file.txt = show last 25 lines of file

Getting Around

cd

cd ~

cd .

cd ..

ls

ls -a

ls -l

lrwxrwxrwx # owner group size_in_bytes last_modified_date_&_time filename.txt
^\_/\_/\_/
| v  v  v
| |  |  |
| |  |  World permissions
| |  |
| |  Group permissions
| |
| Owner permissions
|
Type of file:
  - = file
  l = link
  d = directory
  b = block device (disk drive)
  c = character device (serial port or terminal)

ls -la

ll

ls -F
Classify special files with a character after the file name

  • * = executable
  • / = directory
  • = = socket
  • @ = alias
  • | = FIFO
  • No character = normal file

ls [directory name]

pwd
Display absolute path

pwd

Changing Permissions & Ownership

chmod

r = read = 4

  • If file: view contents
  • If directory: list contents

w = write = 2

  • If file: modify
  • If directory: add or remove files

x = execute = 1

  • If file: run file as command
  • If directory: access files contained inside

u = user
g = group
o = others
a = all

chmod 744 file

chmod -r 744 file

chmod a+x file

chmod a-x file

chmod a+rw-x file

chown

File Information

chown [username] file

chown [username].[groupname] file

file

file [filename]

od
Octal dump of files

Files & Directories

cp

cp /path/to/file /path/to/new/file

cp /path/to/file .

cp file directory/

cp -F

cp -r directory/ directory/

cp -i file file

mv

mv file newfile

mv file directory/

mv directory/ directory/

mv -i file file

mkdir

mkdir [directoryname]

rm

rm file

rm *

rm -i filename

rm -r directory

rm -f file

rm -rf directory

rm -rf /*
Do NOT do this!

rmdir

rmdir
Note: directory must be empty; since that’s often a pain, you can use “rm -rf directory-name” instead, but be careful!

ln

ln [original_file_name] [new_file_name]
Creates a hard link

ln -s [new_file_name] [original_file_name]
Creates a soft link

Finding

find

find / -name *gnome* -print

find / -type d -maxdepth 1

find -name [name] -group [group] -size [size] -mtime [number of days ago] – type [b|c|d|f|l]

locate

locate file-or-directory

updatedb
Update the database used by the “locate” command

whereis

whereis [command]

System Information

free
How much memory is used & unused

Note that you can use this to get even more info: cat /proc/meminfo

df
Disk usage for all mounted drives

du
Disk usage for the current directory and all subdirectories

du -h
Show results in human-readable form (kb & MB)

These details were copied from:

http://www.granneman.com/techinfo/linux/commandline/basiccommands/

TAR & zipping

Most of the program files you need to install on your machine will be downloaded in a compressed format that takes less time to transfer. Once on your machine, you will need to uncompress the file before you can install it. First, determine the type of file you have from the file suffix. If it ends in .tar it is probably an unzipped tar file. If it ends in .Z, .gz, .bz2 or.tgz it is probably a zipped tar file (zipping is a form of further compression). In order untar a tar file type:
tar -xvf file.tar
if it is a zipped tar file add a z to the options:
tar -zxvf file.tar.Z (except for bz2 which uses -j instead of -z)
If you want to look at the contents of a tar file before you untar it use:
tar -t filename.tar
If you then decide there is only a small part of the total tar file you actually need to extract, type:
tar -zxvf tarfile filepathIf you have a large number of files you wish to transfer you can make it simpler by tarring them first:
tar -cvf file.tar directory_to_tar
(Make sure you don’t reverse the order of “file.tar” and “directory_to_tar”). Then to zip it type:
gzip -cv file.tar
Or better yet, do it all at once with:
tar -zcvf
On our SGIs, this must be done with the command:
tar -tvf file.tar directoryname instead.

Here’s a neat trick for transferring a tar file to another machine that will tar “on the fly” rather then requiring you to create a tar file on your own machine first. (Which can be useful if you don’t have much space left.) To do this simultaneous tar, zip, and transfer type:
tar --rsh-command=`which shh` -zcvf -- --host_computer:filename.tar -- --directory_to_tar
Note that “which ssh” needs back-ticks rather than apostrophies.

After you uncompress a program tar file you will usually still have to install the program yourself. The usual directory to install programs in is /usr/local/. (You will need root permissions.) Look for a README file in the file’s source code to get further instructions.
An easier method of installing programs though is to get a rpm package rather then a tar file for a program whenever possible. Rpm packages do all the work of untarring and installing for you. A good source for these files can be found at: http://linux.s390.org/download/rpm2html/index.html or ftp://ftp.software.umn.edu/pub/linux/redhat/redhat-9-en/os/i386/RedHat/RPMS
(Note that this particular link is for people using Redhat 9 but if you go up a few directories you can get to the directory specific to the LINUX version your using).

tar zcf localfolder.tgz localfolder/
tar zcf - localfolder/ \ | ssh 192.1.1.1 "cd folder/to/copy/to; tar zpxvf -"

gzip -dc file.tar.gz | tar xf - pathname/filename
The pathname and filename should be exactly as given in the .tar.gz file. If you want more than one file append their names, again include pathname, at the end of the command.

File editing with SED

In addition to editors like emacs, you can also edit files directly from the terminal using sed, the built-in stream editor. You can use it to make substitutions or deletions in a file with commands such as:
sed 's/oldword/newword/g' filename
which substitutes “newword” for “oldword”. The “g” makes the substitution global (all instances on that line). Without the g, it will only change the first match on that line.
Other sed commands:
sed 's/word/d' filename
This deletes the whole line, not just the word. To delete just the word:
sed 's/word//' filename
The examples given will print out the changes to the terminal. If you want to print the changes to a file instead type:
sed 's/oldword/newword/' filename > newfilename where > directs the output into a file called newfilename
To link more than one command together use &&. For example:
sed 's/oldword/newword/' filename > newfilename && emacs newfilename

sed ‘s/string1/string2/g’ Replace string1 with string2
sed ‘s/\(.*\)1/\12/g’ Modify anystring1 to anystring2
sed ‘/ *#/d; /^ *$/d’ Remove comments and blank lines
sed ‘:a; /\\$/N; s/\\\n//; ta’ Concatenate lines with trailing \
sed ‘s/[ \t]*$//’ Remove trailing spaces from lines
sed ‘s/\([\\`\\"$\\\\]\)/\\\1/g’ Escape shell metacharacters active within double quotes
seq 10 | sed “s/^/      /; s/ *\(.\{7,\}\)/\1/” Right align numbers
sed -n ’1000p;1000q Print 1000th line
sed -n ’10,20p;20q Print lines 10 to 20
sed -n ‘s/.*<title>\(.*\)<\/title>.*/\1/ip;T;q Extract title from HTML web page
sort -t. -k1,1n -k2,2n -k3,3n -k4,4n Sort IPV4 ip addresses
echo ‘Test’ | tr ‘[:lower:]‘ ‘[:upper:]‘ Case conversion
tr -dc ‘[:print:]‘ < /dev/urandom Filter non printable characters
history | wc -l Count lines

centos 5 tweaks

There are a couple of things missing from the otherwise very stable CentOS5:

denyhosts
A python script checking on failed attempts to log into SSH and blocking IP addresses in /etc/hosts.deny when detected.

psad – www.cipherdyne.com/psad/
port scan admin, which detects port scanning activity and blocks IPs with iptables when detected

Additional updating and facilties (like the ones above) are easier installed with YUM when the following repo (Centos, Linux Enterprise & RedHat 7.3 & 9) is added:

http://dag.wieers.com/rpm/FAQ.php#B

15 minutes to using your existing Windows install & apps in Ubuntu

 

Using a Windows install in Ubuntu

Here’s a simple guide to using your existing Windows install inside Ubuntu – and still being able to start it from your hard disk if you need. Unlike previous guides, it takes around 15 minutes and doesn’t require any terminal use.

Updated: For some reason System ? Administration ? Users and Groups seems to be buggy on some installs. Alternative instructions are now included below.

In Windows

First make a hardware profile for VMware:

  • Click Start ? Control Panel ? System
  • On the Hardware tab, select Hardware Profiles
  • Click Copy, and call your new hardware profile VMware.

Now install the SCSI drivers Windows needs to start inside VMware:

  • Download the VMware SCSI drivers and WinImage
  • Install and start Winimage. Inside Winimage, open the VMware SCSI driver file, and Extract it somewhere.
  • Click Start ? Control Panel ? Add Hardware and step through the wizard.
    • Tell Windows you’ve already connected the hardware.
    • On the next screen, there’s a list of installed hardware. Go all the way down to the bottom and choose Add a new hardware device.
    • Choose to Install the hardware that I manually select from a list.
    • Next choose SCSI and RAID controllers. After, that, click Have Disk… and navigate to the drivers you extracted with WinImage.Windows will install the VMware SCSI driver.

Reboot to Ubuntu

If you’re currently mounting your Windows partition under Linux, unmount it.

  • Press Alt-F2 and type sudo gedit /etc/group
    Add your user name to the end of the line that starts with disk, then save and exit. This will add you to the disk group and give you the ability to access your hard disk inside VMware
  • Click Applications ? Add/Remove… . Install the vmware-server package.
  • Click Applications ? System Tools ? VMware Server Console. Connect to the local host. When you’re aslked for a registration code, visit http://register.vmware.com/content/registration.html to get one (it’s free). Select Create a new virtual machine and, in the wizard…
    • Create a Custom virtual machine.
    • Pick the version of Windows you’re using, let VMware pick a name, and click past the defaults until you get to networking. Choose NAT networking. Leave Buslogic as the SCSI controller.
    • On the Select a Disk screen, choose Use a physical disk. That’s right, you’re now an advanced user – give yourself a high five. After that, pick Use individual partitions and pick both your Window NTFS and Linux Ext3 partition (since part of Grub is on your Linux partition). Don’t bother about the swap partition.
  • If, like most people, you don’t have a floppy drive, click Edit virtual machiune settings. Select Floppy 1 and untick Connect at power on.
  • But before we go further, a note: don’t start Linux inside the VM. If you do accidentally start Linux, turn the VM off immediately – otherwise your files may be eaten as Linux checks a running disk. Consider yourself warned.
  • Now start the VM. When grub comes up, select Windows. When you’re asked to pick a profile, pick VMware.

Your Windows install should start inside the VM. Congratulations!
The first time it boots, you’ll get a few messages about new hardware. Cancel them and, in the VMware Server Console, click VM ? Install VMware tools instead. Then let the VM restart when asked.

That’s it. Your existing Windows install and all its apps now can be started inside Ubuntu, and on its own.

If you’d like your Windows apps to appear directly your existing Ubuntu desktop (without the separate Windows desktop), check out last week’s article.

As usual, post any suggestions, feedback or questions below.

  • Contribute something
  • Justify your opinion
  • Be courteous to others

105 Responses to “15 minutes to using your existing Windows install & apps in Ubuntu

  • 1

    Donnie Pennington
    July 9th, 2007 05:39Do you have any suggestions on how to proceed if your already-installed Windows is Vista – which no longer has user-configurable hardware profiles?


    Ed:
    Sorry – I don’t use Vista, as the Windows apps I need don’t work in it. Perhaps another reader can help?

  • 2

    Matt Farley
    July 9th, 2007 13:04I’ve been running this setup for a few months, but I’ve always been annoyed by the fact that each time I switch between booting in the VM versus booting natively, Windows needs to phone home to Microsoft to reactivate itself.

    I’m worried I’ll eventually run out of activations.

    Ed:Check meb’s suggestion below.

  • 3

    Matt Farley
    July 9th, 2007 13:05Whoops, I meant to say “few months” above, not minutes.

  • 4

    Zak
    July 9th, 2007 13:43Thank you!

    Ive been looking for this guide since i first installed Ubuntu because i unfortunately still need some windows apps, im assuming this works with vista too. Anyway thanks for the post!

    Zak

  • 5

    meb
    July 9th, 2007 13:56If you are worried about activation, you can try adding this to the vmx file:

    SMBIOS.reflectHost = TRUE

  • 6

    Sam Liddicott
    July 9th, 2007 16:36I only had to re-register windows once.
    I re-installed XP before I started, got all the windows updates and then filled the hard disk with files of zeroes, which I then deleted.

    I then booted linux and did a compressed dd backup of my ntfs partition, now I can easily restore my XP.

    I also don’t boot my linux grub, because once it booted linux (in vmware) under the same linux which caused some serious filesystem corruption.

    So I made a grub floppy that only boots XP and have vmware boot from that floppy image.

    Final tip, after installing vmwaretools under windows, have it sync your clock regularly or you will lose ticks and you clock will run slowly.

    Sam

  • 7

    David Thomas
    July 9th, 2007 17:21Thank you.

    This is an excellent guide on how to integrate Windows into the Linux desktop.

    It shows how to use advanced modern techniques in a clear way and provides readers with even more reasons to switch to linux.

    I like the idea of a virtualized XP machine running inside my Kubuntu desktop :-)

  • 8

    bob
    July 9th, 2007 18:00Is it possible to do this in reverse? That is, if I have windows xp installed in a virtual machine, can I somehow copy it to a native windows partition and boot from it?

  • 9

    Vince
    July 9th, 2007 20:27When I tried this, Windows bluescreened when it tried to start.

    Ed:What was the error? If the VMware SCSI drivers are missing, you’ll get INACCESSIBLE_BOOT_DEVICE. Also tell us your Physical CPU type (assuming you’re using Ubuntu 7.04).

  • 10

    the jackol’s den » 15 minutes to using your existing Windows install & apps in Ubuntu – Mikhail Esteves
    July 9th, 2007 23:02[…] Link […]

  • 11

    Dave
    July 9th, 2007 23:21I have no ‘disk’ group and creating it doesn’t work?


    Ed:
    We’ve had a couple of reports about this – it may be a bug in the Users and Groups tool. While we investigate, this workaround should suffice. Clock Applications -> Accessories -> Terminal and run:

    sudo gpasswd -a username disk

  • 12

    Dave
    July 9th, 2007 23:22Also it won’t let me unmount sda1
    It says that umount disagrees with fstab.

  • 13

    cpgeek
    July 9th, 2007 23:32So what happens if the applications you need to use require dx9, dx10, or opengl support? last i checked vmware still doesn’t do anything about 3d acceleration… until then, i’m still stuck using windows for autocad, 3d studio max, and video games unless I use some kind of crappy (difficult to use and not up-to-par with running things right on windows) third-party compatibility layer like wine…

    if i can virtualize the gpu as well, i’d be in business, but for now i’m stuck.

  • 14

    Dave
    July 9th, 2007 23:40OK so I finally got it to make the VM, and it says that the partition table has changed since I made the disk. It says this immediately after recreating it. WTF?

  • 15

    WaffleMatt
    July 10th, 2007 00:02@cpgeek:
    (And anybody interested)

    How to enable 3D support in VMWare:
    http://www.vmware.com/support/ws5/doc/ws_vidsound_d3d_enabling_vm.html

    This tutorial uses Vmware server, though. I don’t know if it applies. I think it may work for the free vmware player, though.


    Ed:
    Actually, that uses VMware Workstation. The question is, does it work with VMware server? (which is the free product we used above)

  • 16

    John
    July 10th, 2007 01:07The “disk” group is not accessible from the default “Users and Groups” in Ubuntu Feisty. You will have to edit the group from the command line.


    sudo gedit /etc/group

    At the line that says “disk”, addend your user name to the end, save and exit the file.

    VMware server requires a serial number to work, before you try to install it, register for free at:

    http://register.vmware.com/content/registration.html

    VMware server is no longer in the default repositories for Ubuntu Feisty, you’ll have to add the canonical commercial repository to install it easily


    sudo gedit /etc/apt/sources.list

    add the following line to the end of the file save and exit


    deb http://archive.canonical.com/ubuntu feisty-commercial main

    Then update the local repository lists with:


    sudo apt-get update

    Then you’ll be able to finish the walk-through without “anymore” command line adjustments.

    Also of IMPORTANT note in regards to Windows Vista:

    If you use Windows Vista through a virtual machine, even if it is on the same hardware, you are breaking the EULA and Microsoft reserves the right to collect additional licensing fees and even (at their discretion) withdraw your original license.


    Ed:
    Thanks for your post! Add addition: although you could add it manually, the necessary repositories for VMware-Server will be added as soon as you search for VMware-Server via the Add/Remove app.

  • 17

    William
    July 10th, 2007 02:06Does this require ntfs-3g to be installed?

  • 18

    yarden
    July 10th, 2007 02:08at first I couldn’t unmount because I didn’t have the neccesary privillages, so then I used Gparted and it did the trick. Afterwards I didn’t have the group “disk” so I created it and added my user and it worked.

  • 19

    Cartoons Plugin » Blog Archive » action batgirl batman figure 15 minutes to using your existing Windows install & apps in Ubuntu
    July 10th, 2007 02:48[…] disk if you need. It takes around 15 minutes and doesn’t require any terminal use. nude batmanread more | digg […]

  • 20

    Moritz
    July 10th, 2007 03:30I had to add
    deb http://archive.canonical.com/ubuntu feisty-commercial main
    to my repository list to get acces to the vmware-server package. maybe that should be included in the howto. ;)

  • 21

    Krazen
    July 10th, 2007 04:08It doesn’t work for me. Firstly, I don’t have ‘disk’ group in Ubuntu, secondly, when I do that as a root I receive this: “Unable to change virtual machine power state: The process exited with an error:
    End of error message.”

    Any ideas how can I make it run?

  • 22

    sammy
    July 10th, 2007 07:47will this work with wubi?

  • 23

    L0GiX
    July 10th, 2007 08:51[…] line, Virtualization, Ubuntu, Desktop Linux. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own […]

  • 24

    OpenSource
    July 10th, 2007 10:19Hey
    Pretty interesting post. I am not sure if you came across this..
    http://www.advicesource.org/ubuntu/Run_Existing_Windows_Instalation_On_Ubuntu_With_Vmware_player.html
    for people who dont want to install VMware server ..here is the solution using VMware player.

    Disclaimer:
    I am neither the author nor affiliated with the website. i just found it googleing

    i am going to give it a try myself

    -O

  • 25

    links for 2007-07-10 | Patrick Kempf
    July 10th, 2007 10:24[…] VentureCake » Blog Archive » 15 minutes to using your existing Windows install & apps in Ubun… (tags: linux ubuntu vmware howto windows virtualization software computer) […]

  • 26

    Scott
    July 10th, 2007 10:45Same problem as Krazen… I get the same error. Everything else is working fine.

  • 27

    Cartoons Fans Lounge
    July 10th, 2007 11:38[…] you need. It takes around 15 minutes and doesn’t require any terminal use. storyline X Men 3read more | digg story RSS feed for comments on this post. TrackBack URI Cartoons Fans Lounge […]

  • 28

    prometheus
    July 10th, 2007 14:47I followed the directions exactly (windows 2k professional) and it wouldn’t boot, in the grub menu when I select windows 2000, it says “Error 13: Invalid or unsupported executable format”

    Also at the bottom of the window is a little message saying I don’t have VMware tools installed. Does this mean my installation of the VMware SCSI driver was unsuccessful?

  • 29

    che
    July 10th, 2007 15:43What should I do if I have installed Linux (uBuntu) in one harddisk (hdb1) and Windows XP Pro SP2 in another (hda1)?
    I can only select partition from one harddisk….?
    Any tips…?

  • 30

    FLP
    July 10th, 2007 16:10I noticed under Windows XP the VMware SCSI driver will have a ‘failed (code 10) state. Is this correct?
    When I try to start Windows within Ubuntu, I can get it to go past GRUB, but then it’ll stall out on ‘Starting up’. It does not reach the ‘chose profile’ screen.

  • 31

    Web 2.0 Announcer
    July 11th, 2007 02:3315 minutes to using your existing Windows install & apps in Ubuntu…

    […]Here?s a simple guide to using your existing Windows install inside Ubuntu – and still being able to start it from your hard disk if you need. It takes around 15 minutes and doesn?t require any terminal use.[…]…

  • 32

    Web 2.0 Announcer
    July 11th, 2007 02:37VentureCake » Blog Archive » 15 minutes to using your existing Windows install & apps in Ubuntu…

    […][…]…

  • 33

    Ben
    July 11th, 2007 03:51Worked great with Windows 2003 Standard server though vmware server said not to use the buslogic scsci controller (because its not in 2k3 by default) but as long as you installed it earlier you’d be fine. Not sure if the other scsi controller would work (vmware server recommended it as its already in 2k3).

    thanks again!
    Ben

  • 34

    kent
    July 11th, 2007 06:46Thanks very much. Your instructions were clear and easy to follow. One question I have though and it’s minor- when I click on the “Iconify” button, nothing happens. This happens at home and at work. So I’m thinking it’s a bug but wondered if anyone knows of a workaround.

  • 35

    billyd
    July 11th, 2007 11:00So this is not working for me; here are the problems:
    -installed scsi drivers in windows, but got the same message as FLP, device will not start, code 10, etc.
    -when setting up in VMServer, two partitions are listed, one is NTFS, the other says it cannot determine filesystem, but it looks too small to be my linux partition, I think it’s the swap. Tried setting it up two ways, checking both, and only checking the NTFS, and either way, when I try to start up the windows virtual machine, I get
    -NTLDR is missing, ctrl+alt+delete to restart, and a message at the bottom of the VMServer window saying that VMwaretools is not installed.
    Any thoughts? Much appreciated…

  • 36

    Matthew
    July 11th, 2007 12:20The first time I try to boot my windows vm, I get the activation screen but the keyboard and the mouse won’t work. Any suggestions?

  • 37

    Scott
    July 11th, 2007 12:36OK, got it to finally load… sorta. It crashes/bluescreens at the loading windows xp portion of bootup. I have installed the SCSI drivers, but got an error 10 when i loaded. It says it’s successfully installed but couldnt start. Help???

  • 38

    tipshack.com
    July 12th, 2007 00:4715 minutes to using your existing Windows install & apps in Ubuntu…

    A good guide to running Windows XP running as a virtual computer under Ubuntu. Totally step-by-step, and lots of other tips in the comments. Read first then try if you are brave enough…

  • 39

    trip
    July 12th, 2007 02:52I get this error message everytime I try to start the VM. I even removed and added my partitions ((sda1)Boot, (sda5)Backup, Linux and (sda6)Recover), but didn’t work… Any suggestions?

    Cannot open the disk ‘/var/lib/vmware-server/Virtual Machines/Windows XP Home Edition/Windows XP Home Edition-3.vmdk’ or one of the snapshot disks it depends on.
    Reason: The partition table on the physical disk has changed since the disk was created. Remove the physical disk from the virtual machine, then add it again.

  • 40

    VictorR
    July 12th, 2007 07:29When starting Windows 2000 from VMware Server always get blue screen with INACCESSIBLE_BOOT_DEVICE. The only difference from the above instruction was that I selected Entire Disk instead of Use individual partitions:
    “On the Select a Disk screen, choose Use a physical disk. That’s right, you’re now an advanced user – give yourself a high five. After that, pick Use individual partitions and pick both your Window NTFS and Linux Ext3 partition (since part of Grub is on your Linux partition). Don’t bother about the swap partition.”
    as my Ubuntu was installed on a separate SATA drive with Grub on it as well.
    Configuration:
    CPU: AMD Athlon XP
    Disks: hda – 3 NTFS partitions, all Windows 2000 Prof
    sda – ext3 and swap partitions, Ubuntu 7.04, GRUB on sda

    Memory: 1GB, 256 MB allocated for Windows under VMware server.
    Windows can boot from hda (without GRUB), if it is a first bootable drive in BIOS. Windows is also bootable from GRUB.

    What can I do to make it working?

  • 41

    evolvin_monkey
    July 12th, 2007 14:26I select “physical disk” and then “use individual partitions”. When I click nest I get the error message:

    “Failed to load partitions for device /dev/sda: Permission denied

    Any suggestions would be appreciated.

    Thank you for your time.


    Ed:
    You’re not a member of the disk group. Add yourself and you’ll be fine.

  • 42

    bui
    July 12th, 2007 20:59i get same bsod as vince. the error i get says “*** STOP: 0X0000007B (0XFAF76528,0XC0000034,0X00000000,0X00000000)” which i guess is an inaccessible boot device but im sure my scsi driver is installed. by physical cpu type do u mean amd athlon xp 1600+?

  • 43

    VictorR
    July 13th, 2007 08:47OK, I went through the INACCESSIBLE_BOOT_DEVICE error, see one possible solution here:
    http://www.vmware.com/support/reference/win/acpihal_w2k.html

    The source suggests replacing NTOSKRNL.EXE and HAL.DLL by other ones without Advanced Power Management support, which is not implemented in VMware. They use installation CD, but if you have Service Packs installed it can be another source of troubles.

    I did it and got another Blue Screen Of Death and immediate reboot. I cannot say what was written on it as it appears for less than a second.
    It happens when the screen should change low-resolution Windows Logo to normal display settings.

    Any ideas?

  • 44

    Nick
    July 13th, 2007 12:22QUOTED BY MEB
    July 9th, 2007 13:56

    “If you are worried about activation, you can try adding this to the vmx file:

    SMBIOS.reflectHost = TRUE”

    Where is this file that we add this line to? Is it within the VM-Server options or do we need to open a file with Gedit?

  • 45

    bui
    July 13th, 2007 19:34Just a correction about my error. I’m getting the blue screen stop error because my driver isn’t correctly installed. I have a screenshot of the blue screen if more info is needed. I get the same “code 10? error as FLP and billyd when trying to install it. If I can get past this, it may work out. I’m using WinXP.

  • 46

    jasontan6
    July 13th, 2007 23:57evolvin_monkey:
    Did you remember to unmount your Windows partitions?

  • 47

    Andres
    July 14th, 2007 06:50Followed all the steps and got this error message:

    Unable to change virtual machine power state: The process exited with an error:
    End of error message.

    Any ideas on how to solve it?

    Thx!

  • 48

    Scott
    July 16th, 2007 02:58Any word on a fix for the Error 10/Bluescreen problem???

  • 49

    Mark
    July 16th, 2007 08:59This is working great, but I have a slight problem…
    I currently have both my XP and Linux installations on one HDD, and all my other applications on a set of other HDD’s. I can detect those just fine in Linux, but in XP when being run in VMware server console, they are not detected by Windows.

    Any way of fixing this? Kinda needed to access those applications. ^.^

    Thanks.

  • 50

    Karl L. Gechlik
    July 16th, 2007 13:57Mark we have a user who is having the same problem over @ http://www.asktheadmin.com. Come on by we should have some information to help you in the next few days.

    _TheAdmiN_

  • 51

    Gopal
    July 16th, 2007 18:09When i run the VM, get the error ” NTLDR is missing. Press any key.”
    How do i fix this to run windows ?

  • 52

    Gopal
    July 16th, 2007 18:37refer to my prev reply. I am running XP-Home. Is this an issue ?

  • 53

    Arthur
    July 17th, 2007 15:19When I Power On it says GRUB Loading please wait…

    Then I get an Error 21?

    Anyone know what the issue may be?

  • 54

    Eric
    July 18th, 2007 01:08Not working on my A64 x2 rig under ubuntu 7.04:
    *** VMware Server internal monitor error ***
    vcpu-0:FPU Safety: Error: FPU instruction executed in monitor context[#NM]: cs:eip 0×4020:0×6ac28 %cr0: 0×8001003b CR[0]: 0×10
    There is a problem in this version of VMware Server.

  • 55

    Hector
    July 18th, 2007 04:31I followed the steps and then when windows was about to start for the first time I got this error “A problem has been detected and windows has been shut down to prevent damage to your computer. If this is….etc etc etc…..Technical information : Stop: 0×0000007B ( 0xF8980528, 0xC0000034, 0×00000000, 0×00000000).” I guess the driver installation failed in Win, but not sure. Any idea how to fix this? I was so excited I was getting rid of dual booting. I am using WinXP Home.

  • 56

    Shawn
    July 18th, 2007 08:51when I press full screen it looks really bad like it has scanlines and it’s all stretched looking … any idea how to fix this?

  • 57

    Scott
    July 18th, 2007 14:12I’ve unmounted the Windows drive, but when I power on, the black screen says “PXE-E53: No boot filename received” and “PXE-M0F: Exiting Intel PXE-ROM. Operating System not found.” I then get a pop-up saying no bootable hard disk was detected. What is wrong?

  • 58

    Hector
    July 19th, 2007 00:19I think my problem is that I misconfigured the virtual machine (I selected hda disks instead of sda disks). The problem is that my NTFS and Linux partitions are in hda. Do I need an IDE driver instead of the SCSI provided here? Where can I find it?

  • 59

    Hector
    July 19th, 2007 06:27I fixed my booting issue (Code 10 and Code 7b “INACCESSIBLE_BOOT_DEVICE”).

    I checked vmware website and found I needed another driver configuration because my physical disk is IDE, not SCSI (that is why my NTFS and ext3 partitions appeared in hda instead of sda when configuring the host). So I did the following:

    In Windows:
    1) Removed the device added following above steps (the SCSI driver).
    2) Deleted new hardware profile created following above steps (for VMware).
    3) Followed the steps outlined in “IDE Controller Driver Issue” (http://kb.vmware.com/KanisaPlatform/Publishing/635/36_f.SAL_Public.html) to create a new hardware profile and update IDE drivers.

    In Ubuntu:
    4) Rebooted to Linux and run VMware Console.
    5) Followed the steps on “Configuring the Host” (pages 5 and 6 of http://www.vmware.com/pdf/dualboot_tech_note.pdf)

    Everything is working fine for me now! You may add these steps to the tutorial If you want.

    Thanks!

  • 60

    Dan
    July 19th, 2007 11:21Neat guide. Thanks.

  • 61

    Scott
    July 20th, 2007 02:08Well, I found out the answer on my own. I needed to set the boot disk (hda1) as SCSI 0:0 so it would boot Windows. I’ve installed VMware Tools, but I can’t get the sound to work. Any suggestions?

  • 62

    Daily Cup of Tech Tumblog » 15 Minutes to Running Windows Under Ubuntu
    July 21st, 2007 01:09[…] VentureCake » Blog Archive » 15 minutes to using your existing Windows install & apps in Ubunt…: Here’s a simple guide to using your existing Windows install inside Ubuntu – and still being able to start it from your hard disk if you need. Unlike previous guides, it takes around 15 minutes and doesn’t require any terminal use. […]

  • 63

    Joe
    July 21st, 2007 08:25Is anyone having networking trouble when booting into XP Home? I can’t activate windows because I can’t get a network connection. Do I have to use NAT networking, or can I use bridge?

  • 64

    jorge
    July 24th, 2007 14:41vmware-server is not that simple to install, it’s on another repo on 7.04 instructions to install here http://www.ubuntugeek.com/how-to-install-vmware-server-from-canonical-commercial-repository-in-ubuntu-feisty.html

    Ed: Yes it is. Try it. Your method just uses the command line.

  • 65

    Dennis
    July 25th, 2007 18:47I read only one other post that had this error:

    The partition table on the physical disk has changed since the disk was created. Remove the physical disk from the virtual machine, then add it again.

    Nobody responded to it. I have the same problem and would like some help on this. Thanks!

  • 66

    Dennis
    July 29th, 2007 19:12Can anyone help me out?

  • 67

    stuntman
    July 29th, 2007 23:04i just keep getting same error…”The partition table on the physical disk has changed since the disk was created. Remove the physical disk from the virtual machine, then add it again”

    please guide further…have been stuck for a long time now!
    thank you!

  • 68

    VictorR
    July 30th, 2007 14:18Finally made it working. My problem seems was in the graphics. I recently changed my built-in S3 video card to NVidia GeForce, and tried to run Windows 2000 on virtual machine once more. Surprisingly it works.

    Thank you for this How To.

  • 69

    Dennis
    July 31st, 2007 18:10Well, at least i’m not the only one with that problem.

  • 70

    15 min lektion; Använda Windows i Ubuntu at Bloggliv
    August 1st, 2007 04:35[…] Här är en väldigt intressant post som jag verkligen ska testa så fort jag får tid. Den handlar om hur man använder VMware för att köra sin Windows-installation under Ubuntu och kommer igång på 15 minuter. Precis som i förra inlägget är det VentureCake som står för underhållningen: Here’s a simple guide to using your existing Windows install inside Ubuntu – and still being able to start it from your hard disk if you need. Unlike previous guides, it takes around 15 minutes and doesn’t require any terminal use.Updated: For some reason System ? Administration ? Users and Groups seems to be buggy on some installs. Alternative instructions are now included below. […]

  • 71

    Jakob
    August 1st, 2007 05:00This is exactly what I expected to find out after reading the title in Ubuntu. Thanks for informative article

  • 72

    VictorR
    August 1st, 2007 15:45There is a process called vmware-wmx, which starts at system startup and consumes 100% of CPU load. It appeared after first restart of Ubuntu when I managed to make virtual Windows working.

    Does anybody know what this process is intended for? It starts with Ubuntu, not VMWare Server, and makes something, I have a bad feeling about.

  • 73

    stevelasvegas
    August 2nd, 2007 11:46So was there an answer to sammy “does it work if Ubuntu is Wubi installed? I have XP Home with Ubuntu installed through WUBI and I’d love to give it a try (after I image my drive).

  • 74

    Robin
    August 2nd, 2007 18:34I’m having the same problems as FLP – the scsi driver doesn’t install in windows properly, the VMWare server gets to Grub, then all it gives is a “Starting up …” message and nothing else.

    Also, vmware-vmx is running 99.9% CPU

    Any ideas?

  • 75

    Robin
    August 2nd, 2007 20:37This guy has the information I needed in his website:
    http://mazimi.wordpress.com/2007/06/24/virtualization-of-an-existing-physical-partition-of-windows-within-linux/

    Noteably:
    “At this point you will either be given a choice of which hardware profile you want to boot into (choose VMware) or your screen will hang at “Starting up…”. In my case it hangs at starting up. This had to do with the location that the windows boot files are located on your hard drive and the fact that GRUB did not point to the correct location.

    Don’t worry there is a solution that I recommend, even for users who can successfully boot into Windows. Reboot your computer into Windows and use your Windows install CD to make a boot CD image. If you don’t know how to do this, google it, there are many guides explaining it. However, if you are using Windows XP Pro (may work for home), I have a boot disk image that you can download. Save this file to disk and note where you saved it.”

    NB – You still need the scsi driver installed even if it gives you the error 10 or you will get a bsod. I also replaced the IDE driver in the VMWare hardware profile as Hector said, but I don’t know if that’s really neccesary.

  • 76

    scott
    August 5th, 2007 04:35I was getting the same “Partition Table has changed” error. Instead of using specific partitions, I used the whole disk. Windows booted without a problem.
    Hope that helps somone.

  • 77

    Polyhedroid
    August 9th, 2007 16:29Ran into the same problem than the one described earlier by Arthur: “GRUB Loading please wait… Error 21…”
    I know that the article specify to grab both windows and the linux partitions but linux is not install on the same disk as windows… is there a way to get around this problem without changing my setup ???

    Thanks.

    P.

  • 78

    Cory
    August 11th, 2007 13:50I as well am having the blue screen problem. In the virtual machine, i get to choose windows, then choose the hardware profile vm and them it looks like windows is loading I get the blue screen:

    A problem has been detected and Windows has been shut down to prevent damage to your computer.


    *** Stop 0X0000007B (0XFA2C2528,0XC0000034,0X0000000000,0X0000000000)

    Please help :-)

  • 79

    they.com – Now lemon-scented! » Catch
    August 12th, 2007 05:50[…] VentureCake » Blog Archive » 15 minutes to using your existing Windows install & apps in Ubunt… […]

  • 80

    CrowdOfOne
    August 14th, 2007 08:45@Polyhedroid

    Think of GRUB as having two parts to it .. one bit of the GRUB bootloader is on the first sector of your windows disk … The other bit is on the linux parition/disk. Thats why you need to include both disks .. so that GRUB can read the second half of itself from the linux drive and then boot windows.

    You can do it without including the linux partition/disk though … To fix it all you need to do is boot off a windows xp cd (or iso) and choose repair. Choose the command line option and then at the command line type fixboot /mbr. For vista it’s bootrec.exe instead of fixboot tho i don’t know if vista would work for this as hardware profiles have been removed. I’d try but i’m hesitant in case i end up screwing my vista installation as each time it boots it’ll detect new hardware.

  • 81

    David
    August 22nd, 2007 08:14I think partition selection in grub loader caused this error:

    “The partition table on the physical disk has changed since the disk was created. Remove the physical disk from the virtual machine, then add it again.”

    To get around this issue delete and recreate your virtual machine but this time select “use entire disk” instead of “use individual partitions”

  • 82

    Brian
    August 25th, 2007 23:48I am having an issue when stating up the windows VM wherein I get the hang at “Starting up” after going through GRUB. I have made an floppy image from which has basic grub which I manually use (I imagine this is the same as the above mentioned windows made BOOT cd, although correct me if I am wrong) but it still will not boot into windows. I have the vmware SCSI drivers installed into a VMWare profile on the windows side, and when i boot into windows the driver there (although it gives an error that it cannot start which makes sense given that the device is not present). I have tried using the full drive or individual partitions as well as the standard grub boot config (instead of the above mentioned image). Many thanks!

  • 83

    pjotr
    September 1st, 2007 04:29HI
    My windows xp comes to the starting screen then a bluescreen appears. I had to use the whole disk and not only my ubuntu and windows xp partition because i got the fstab error. XP shows Error Code 10 of the scsi driver. What do I have to do change settings in xp or what can i do? I also deactivated the graphic driver. Do I have to use a clean installation?

    thx

  • 84

    liawi
    September 4th, 2007 08:07Thanks,
    the guide works perfectly on my machine (Ubuntu 7.04), booting Windows XP is fast, the performance for applications is good enough, but … shuting done Windows inside the VM takes 10 minutes! The VM seems to hang at the screen “Windows is going done”. Nothing happens, no CPU load, and “suddenly” Windows is off. Are there any ideas to that?

  • 85

    Eric
    September 5th, 2007 09:07I’m stuck at the “Starting up” point as well. I have it working great on my desktop at home, but the same thing is not working on my HP nc8430 at the office. I can get into grub and choose XP, but then it hangs at “Starting up.” I’ve disabled native SATA and that didn’t help either. Any ideas?

  • 86

    OrenM
    September 12th, 2007 18:12Hi.
    I also have a problem. I installed and configured everything properly. unmounted all my windows partitions, launched the VMware and started the VM.

    I got the grub menu, scrolled down to the windows partition and chose it.

    Now I get a “starting up” message (text screen) and it just
    hangs there.

    I did not get to the point where I need to choose my hw profile yet as you can understand.

    any ideas?

    thanks!

  • 87

    Matt
    September 14th, 2007 05:16Hi
    I followed the instructions and set up the virtual machine and I am able to boot the physical win xp as virtual machine in VMware. However when I rebooted my system to run my win xp regularly (physical) rather than as virtual machine under ubuntu I get a blue screen for 2s and my system restarts. I am selecting my original hardware profile when I do this. As it stands now I am unable to use my win xp install unless I use it as a virtual machine from ubuntu. Please help. I want to be able to use my win xp as physical as well rather than just as virtual machine in ubuntu.

  • 88

    Scott Gifford
    September 15th, 2007 08:13Has anybody had luck using this with Vista? I tried it, and Vista starts to boot then hangs pretty early on.

    Thanks,

    —Scott.

  • 89

    Luke
    September 26th, 2007 21:45Hi.

    If you followed the advice about the stop 7b problem it involves replacing hal.dll and other such complexities. An easier solution is to boot into the windows os, then go Device Manager -> Computer –> ACPI computer (or something) –> Update driver –> Install from a list or specific location –> Don’t search, I will choose driver to install –> choose anything without ACPI, (mpu for multiprocessor though and standard pc for single processor.)

    Now reboot into linux and start the vmware and hopefully you should be able to load windows fully.

    Good luck.

  • 90

    blenderfish
    October 12th, 2007 04:18Has anyone found a solution to the hang at “starting up” issue? I have followed the link to Mohammad Azimi’s site and tried his idea of booting from ISO, but it is not working for me. I am on a Thinkpad z61m and I can boot from a CD made from a Windows Boot CD into WinXP Pro, but trying the same thing from within the VM has no effect. My system still goes into GRUB and hangs on “starting up…”. This is the case with multiple ISO’s, including the Ubuntu LiveCD. Any ideas on what my next step should be?

  • 91

    Ike
    October 14th, 2007 14:58I’ve followed the directions and can get to the login screen for my windows xp os, but my keyboard and mouse do not work, so I can’t login. Any suggestions? Thanks in advance for any help!

  • 92

    Zeta
    October 19th, 2007 21:53Helo,

    i tried to install this feature following steps, but it produces an error:
    Error 13: Invalid or unsupported executable format

    selecting Windows XP from virtualled-Grub

    In Windows, VMWare SCSI Controller produces a Code:10 (cannot initialize driver).

    Any idea?

  • 93

    Sloan
    October 20th, 2007 23:50I haven’t tried anything in this tutorial but I think I may have an answer for those experiencing blue screens in XP. Somebody can try this and if anything, nothing will change.

    Once you install the VMware SCSI drivers, do NOT reboot. Instead, reinstall your original hard drive drivers. Try having Windows find them for you. Windows should put the hard drive drivers back to what they were before and you’ll have the VMware SCSI drivers readily available if something needs them.

    Once you have reinstalled your original drivers, try rebooting and try the VM. Post back if it helps.

  • 94

    ubuntu aloittelija
    November 5th, 2007 04:03I have 2 harddisk where in first (sda or in grub hdo) I have Windows xp and in second (sdb grub hd1) I had also the Grub error 21 I resolved it by
    selecting sdb in wizard and adding sda after the vm was created. At this point grub didnt boot my windows so I pressed :)
    Hope this help.
    Ubuntu and love

  • 95

    ubuntu aloittelija
    November 5th, 2007 04:05so I pressed F2 and enabled the second harddisk inside the bios.

  • 96

    Martin Lentink
    November 11th, 2007 05:09Much as I would like to do this, following the how-to to the letter consistently results in a disk read error. The VM gets to GRUB, chooses windows and there it gets stuck, because somehow it can’t read the disk. Windows natively boots up fine, so I’m sure there’s nothing wrong with that disk physically. I unmount the relevant partitions prior to trying to boot up, and my user is in the ‘disk’ group.

    I’m stuck…

  • 97

    patchido
    November 24th, 2007 14:49ok..am i so newb or did i did somethiung wrong…

    i cant do this”Click Applications ? Add/Remove… . Install the vmware-server package.”

    where do i get the package from?

  • 98

    avid_mass
    November 27th, 2007 12:02ah, nice ty

    now.. have you tried running your ubuntu install from your vmware in your windows install? :]

  • 99

    hector
    December 5th, 2007 23:31I found this regarding product activation in VMware site:

    Known Issues
    Product Activation
    The Microsoft Windows XP product activation feature creates a numerical key based on the virtual hardware in the virtual machine where it is installed. Changes in the configuration of the virtual machine might require you to reactivate the operating system. There are some steps you can take to minimize the number of significant changes.

    - Set the final memory size for your virtual machine before you activate Windows XP. When you cross certain thresholds—approximately 32MB, 64MB, 128MB, 256MB, 512MB and 1GB—the product activation feature sees the changes as significant.

    Note: The size reported to the Windows product activation feature is slightly less than the actual amount configured for the virtual machine. For example, 128MB is interpreted as falling in the 64MB–127MB range.

    - Install VMware Tools before you activate Windows XP. When the SVGA driver in the VMware Tools package is installed, it activates features in the virtual graphics adapter that make it appear to Windows XP as a new graphics adapter.

    - If you want to experiment with any other aspects of the virtual machine configuration, do so before activating Windows XP. Keep in mind that you have 30 days for experimentation before you have to activate the operating system.

    For more details on Windows XP product activation, see the Microsoft Web site.

  • 100

    No One
    December 8th, 2007 11:11I found a solution to the issue that several have posted about having Windows on one disk and Linux on the other. Follow the directions above, but only choose the Windows disk. Later, in the server console, go to the “VM” menu, then “Settings”. From here you can add the Linux disk device. Now all I’ve got to figure out is how to replace the Grub menu with some other option that boots directly into Windows.

  • 101

    Pelusa
    December 10th, 2007 16:39@CrowdOfOne from August 14th
    Does your suggestion mean reboot with repair XP CD inside VMware? I do not want to screw up my physical dual boot grub, just the virtual boot. With this guide here I was able to get it run, though I cannot detect my PCI card (as indicated on the VMware webpage). I would still use Windows most of the time in linux and am sure at some point I miss the grub choice and will boot into linux and screw everything up, so the virtual boot should only be into windows if possible.
    Cheers

  • 102

    Angel
    December 14th, 2007 23:59Hi, same happens than to Martin Lentink, I can choose windows xp from
    grub menu, but it says “read disk error”, and tells to press Ctl+Alt+Supr
    to restart …. native windows boots up correctly … HELPPP!!!

  • 103

    Anake
    December 22nd, 2007 17:23Thank for a tips.
    i have boot to xp is ok but Mouse and Keyboard is not responed. Why?

  • 104

    Andy
    January 1st, 2008 13:07I have the same issue as some of the posts. I can get to the login screen fine, but then my keyboard and mouse doesn’t work. Has anyone found a fix?

  • 105

    Gilles
    January 8th, 2008 00:24I don’t know why Windows won’t detect the keyboard and mouse for some people. It seems it isn’t doing device enumeration/detection.

    There is a solution here, by setting up autologin and forcing Windows to redetect hardware:
    http://communities.vmware.com/thread/56658