Author Topic: How do I install Win 7 on virtualbox? (SOLVED)  (Read 5260 times)

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: How do I install Win 7 on virtualbox?
« Reply #15 on: January 13, 2012, 06:09:40 AM »
Please go easy on me as I simply cannot comprehend the instructions there in regards to setting this up. Here is the path on my system where VBox is located. /home/shutterbug/VirtualBox VMs
I am completely lost after several attempts

shutterbug@localhost ~]$ VBoxManage guestcontrol Wind Rider execute
VBoxManage: error: Could not find a registered machine named 'Wind'
VBoxManage: error: Details: code VBOX_E_OBJECT_NOT_FOUND (0x80bb0001), component VirtualBox, interface IVirtualBox, callee nsISupports
Context: "FindMachine(Bstr(pszNameOrId).raw(), machine.asOutParam())" at line 422 of file VBoxManageGuestCtrl.c


Thanks.

1) Start your virtual machine, and install Guest Additions (Top Menu -> Devices -> Install Guest Additions), if not already done.
2) Edit your VM settings, click on "Shared folders", add the directory you want to share between the host and the guest.

AS


Offline kjpetrie

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 4000
Re: How do I install Win 7 on virtualbox?
« Reply #16 on: January 13, 2012, 07:35:35 AM »
Command line arguments containing spaces either need to be quoted, or have the spaces escaped with a \, depending on the command. This inconsistent requirement is the reason most seasoned Linux users prefer to use _ rather than spaces to separate words.
-----------
KJP
-----------------------------------------------------------
PClos64 RC1 on Intel D945GCLF2 motherboard (Atom 330), 2GB DDR2 RAM, Maxtor STM325031, HL-DT-ST DVDRAM GSA-H42N, Amilo LSL 3220T monitor. Also Acer 5810TG (with custom kernel) and Asus eeePC 2G surf

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Re: How do I install Win 7 on virtualbox?
« Reply #17 on: January 13, 2012, 03:08:57 PM »

shutterbug@localhost ~]$ VBoxManage guestcontrol Wind Rider execute
VBoxManage: error: Could not find a registered machine named 'Wind'


Could not find a registered machine named 'Wind' is your clue. Do it like this:

VBoxManage guestcontrol "Wind Rider" execute


Command line arguments containing spaces either need to be quoted, or have the spaces escaped with a \, depending on the command. This inconsistent requirement is the reason most seasoned Linux users prefer to use _ rather than spaces to separate words.

Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline Snapshot

  • Hero Member
  • *****
  • Posts: 610
Re: How do I install Win 7 on virtualbox?
« Reply #18 on: January 13, 2012, 04:00:07 PM »

shutterbug@localhost ~]$ VBoxManage guestcontrol Wind Rider execute
VBoxManage: error: Could not find a registered machine named 'Wind'


Could not find a registered machine named 'Wind' is your clue. Do it like this:

VBoxManage guestcontrol "Wind Rider" execute


Command line arguments containing spaces either need to be quoted, or have the spaces escaped with a \, depending on the command. This inconsistent requirement is the reason most seasoned Linux users prefer to use _ rather than spaces to separate words.

I'll work on this in a bit. I initially today entered only what you suggested and didn't complete the argument. There is more yet to be done. Thanks for the suggestion (help) and I'll post back later.

BR,
Bob
If fishing is interfering
with your business, give
up your business.
Sparse Grey Hackle
(Alfred W. Miller)

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Re: How do I install Win 7 on virtualbox?
« Reply #19 on: January 13, 2012, 04:12:27 PM »
I initially today entered only what you suggested and didn't complete the argument.

Yeah, I got the following error:

darrel@AMD64:  53 items 548Kb -> VBoxManage guestcontrol "Zen" execute
VBoxManage: error: Machine "Zen" is not running (currently powered off)!



What is it you're trying to do? Set up a shared folder, or something else?
Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline The Chief

  • Hero Member
  • *****
  • Posts: 2253
Re: How do I install Win 7 on virtualbox?
« Reply #20 on: January 13, 2012, 04:20:48 PM »
shutterbug@localhost ~]$ VBoxManage guestcontrol Wind Rider execute
VBoxManage: error: Could not find a registered machine named 'Wind'

This appears to be a problem with spaces in a name - not a good idea in Linux, or Windows, for that matter, although it causes fewer headaches in Windows. 

Rename it to use an underscore or dash in the name, or enclose the name in quotes ("Wind Rider").

Retired Senior Chief, Retired Software Engineer, Active GrandPa

Offline Snapshot

  • Hero Member
  • *****
  • Posts: 610
Re: How do I install Win 7 on virtualbox?
« Reply #21 on: January 13, 2012, 04:27:05 PM »
I initially today entered only what you suggested and didn't complete the argument.

Yeah, I got the following error:

darrel@AMD64:  53 items 548Kb -> VBoxManage guestcontrol "Zen" execute
VBoxManage: error: Machine "Zen" is not running (currently powered off)!



What is it you're trying to do? Set up a shared folder, or something else?


Yes, shared folders on my Linux box. I just yesterday got my VBox set up with Win7 but I can't access my PCLOS folders. Also there is the issue of responsiveness from Win 7 and a jittery cursor is just plain annoying. It would be nice (if possible) to get a more fluid response within Windows as well as a better display. As it is I have to stretch the display to fill my monitor.

My error was this:
 
[shutterbug@localhost ~]$ VBoxManage guestcontrol "Wind Rider" execute
Oracle VM VirtualBox Command Line Management Interface Version 4.1.4_OSE
(C) 2005-2011 Oracle Corporation
All rights reserved.

Usage:

VBoxManage guestcontrol     <vmname>|<uuid>
                            exec[ute]
                            --image <path to program>
                            --username <name> --password <password>
                            [--dos2unix]
                            [--environment "<NAME>=<VALUE> [<NAME>=<VALUE>]"]
                            [--timeout <msec>] [--unix2dos] [--verbose]
                            [--wait-exit] [--wait-stdout] [--wait-stderr]
                            [-- [<argument1>] ... [<argumentN>]]

                            copyfrom
                            <source on guest> <destination on host>
                            --username <name> --password <password>
                            [--dryrun] [--follow] [--recursive] [--verbose]

                            copyto|cp
                            <source on host> <destination on guest>
                            --username <name> --password <password>
                            [--dryrun] [--follow] [--recursive] [--verbose]

                            createdir[ectory]|mkdir|md
                            <director[y|ies] to create on guest>
                            --username <name> --password <password>
                            [--parents] [--mode <mode>] [--verbose]

                            stat
                            <file element(s) to check on guest>
                            --username <name> --password <password>
                            [--verbose]

                            updateadditions
                            [--source <guest additions .ISO>] [--verbose]


Syntax error: Incorrect parameters
[shutterbug@localhost ~]$
If fishing is interfering
with your business, give
up your business.
Sparse Grey Hackle
(Alfred W. Miller)

Offline Snapshot

  • Hero Member
  • *****
  • Posts: 610
Re: How do I install Win 7 on virtualbox?
« Reply #22 on: January 13, 2012, 04:31:53 PM »
shutterbug@localhost ~]$ VBoxManage guestcontrol Wind Rider execute
VBoxManage: error: Could not find a registered machine named 'Wind'

This appears to be a problem with spaces in a name - not a good idea in Linux, or Windows, for that matter, although it causes fewer headaches in Windows. 

Rename it to use an underscore or dash in the name, or enclose the name in quotes ("Wind Rider").
Is it possible now to edit Wind Rider to Wind_Rider? If so, how? Thanks.
If fishing is interfering
with your business, give
up your business.
Sparse Grey Hackle
(Alfred W. Miller)

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Re: How do I install Win 7 on virtualbox?
« Reply #23 on: January 13, 2012, 04:35:47 PM »
Is it possible now to edit Wind Rider to Wind_Rider? If so, how? Thanks.

Yeah, VBoxManage doesn't appear to like the space in the VM name. Open VBox. Select the VM. Select Settings. In the left pane, select General and the Basic tab. Change the name there. As far as the shared folder, follow as's post at the top of this page. If you get stuck post back.
Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Online Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11591
  • ----IOFLU----
Re: How do I install Win 7 on virtualbox?
« Reply #24 on: January 13, 2012, 04:39:11 PM »
shutterbug@localhost ~]$ VBoxManage guestcontrol Wind Rider execute
VBoxManage: error: Could not find a registered machine named 'Wind'

This appears to be a problem with spaces in a name - not a good idea in Linux, or Windows, for that matter, although it causes fewer headaches in Windows.  

Rename it to use an underscore or dash in the name, or enclose the name in quotes ("Wind Rider").
Is it possible now to edit Wind Rider to Wind_Rider? If so, how? Thanks.

You can delete the VM, but not the .vdi file. Then create a new machine, with a proper name. (Wind_Rider, or WindRider) When you get to the part about creating a virtual hard drive, choose to use an existing drive, then select the existing one. The entry in VB will have the new name but boot the existing installation.
« Last Edit: January 13, 2012, 04:40:49 PM by old-polack »
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Re: How do I install Win 7 on virtualbox?
« Reply #25 on: January 13, 2012, 04:43:04 PM »
You can also just rename the VM from the VBox settings.
Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Online Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11591
  • ----IOFLU----
Re: How do I install Win 7 on virtualbox?
« Reply #26 on: January 13, 2012, 04:49:03 PM »
You can also just rename the VM from the VBox settings.


When I tried that, admittedly a few releases back, it locked up VB. Deleting the machine file, keeping the .vdi file, and creating a new machine worked, at that time, and has since. I haven't tried just renaming the VM since. Thanks for letting me know that's been fixed.  ;D
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Re: How do I install Win 7 on virtualbox?
« Reply #27 on: January 13, 2012, 04:52:26 PM »
I haven't tried just renaming the VM since. Thanks for letting me know that's been fixed.  ;D

No problem. Of course, the vdi file name's still going to contain a space.  ;)  Just the VM gets renamed.
Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Re: How do I install Win 7 on virtualbox?
« Reply #28 on: January 13, 2012, 04:58:00 PM »
Also there is the issue of responsiveness from Win 7 and a jittery cursor is just plain annoying. It would be nice (if possible) to get a more fluid response within Windows as well as a better display. As it is I have to stretch the display to fill my monitor.

You need to have at least 1GB of RAM allocated for the guest to get good responsiveness. The mouse speed can be tailored with the Windows settings. As far as the display settings, need more info on your settings and what you're trying to do.

However, best to proceed with one thing at a time.
Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Online Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11591
  • ----IOFLU----
Re: How do I install Win 7 on virtualbox?
« Reply #29 on: January 13, 2012, 05:01:34 PM »
I haven't tried just renaming the VM since. Thanks for letting me know that's been fixed.  ;D

No problem. Of course, the vdi file name's still going to contain a space.  ;)  Just the VM gets renamed.


That can be renamed before creating a new VM, simply by right clicking the .vdi file and selecting Rename.
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...