Windows 7 Install

151 views
Skip to first unread message

James Chi

unread,
May 24, 2017, 4:27:13 PM5/24/17
to qubes-users
Hello all,

I am not only new to Qubes, I am also new to linux so I am going to have to learn a lot. I would appreciate any help.

I have a windows 7 iso on usb. I created a usb vm called sys-usb. Now I am trying to copy the iso file to dom0 based on the following:

"qvm-start win7 --cdrom=/usr/local/iso/win7_en.iso

The above command assumes the installation ISO was transferred to Dom0 (copied using dd command from an installation CDROM for example)."

Can someone help me figure out this step? Sorry for the newbie question. I will have lots of these.

Franz

unread,
May 24, 2017, 4:42:39 PM5/24/17
to James Chi, qubes-users
the command you mention does not copy a iso to dom0. Copyingfiles to dom0 is discouraged because dom0 should be protected from external possible attacks.

the command you mention tells dom0 where to find an iso to start a HVM and particularly tells to look for the iso into a cdrom.

best
Fran
--
You received this message because you are subscribed to the Google Groups "qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qubes-users+unsubscribe@googlegroups.com.
To post to this group, send email to qubes...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qubes-users/f9d4133c-a0a4-4533-b3b2-5cc61eb498e6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

James Chi

unread,
May 24, 2017, 4:56:32 PM5/24/17
to qubes-users, chi....@gmail.com
On Wednesday, May 24, 2017 at 4:42:39 PM UTC-4, Francesco wrote:
> On Wed, May 24, 2017 at 5:27 PM, James Chi <chi....@gmail.com> wrote:
> Hello all,
>
>
>
> I am not only new to Qubes, I am also new to linux so I am going to have to learn a lot.  I would appreciate any help.
>
>
>
> I have a windows 7 iso on usb.  I created a usb vm called sys-usb.  Now I am trying to copy the iso file to dom0 based on the following:
>
>
>
> "qvm-start win7 --cdrom=/usr/local/iso/win7_en.iso
>
>
>
> The above command assumes the installation ISO was transferred to Dom0 (copied using dd command from an installation CDROM for example)."
>
>
>
> Can someone help me figure out this step?  Sorry for the newbie question.  I will have lots of these.
>
>
>
>
>
>
> the command you mention does not copy a iso to dom0. Copyingfiles to dom0 is discouraged because dom0 should be protected from external possible attacks.
>
>
> the command you mention tells dom0 where to find an iso to start a HVM and particularly tells to look for the iso into a cdrom.
>
>
> best
>
> Fran
> --
>
> You received this message because you are subscribed to the Google Groups "qubes-users" group.
>
> To unsubscribe from this group and stop receiving emails from it, send an email to qubes-users...@googlegroups.com.
>
> To post to this group, send email to qubes...@googlegroups.com.
>
> To view this discussion on the web visit https://groups.google.com/d/msgid/qubes-users/f9d4133c-a0a4-4533-b3b2-5cc61eb498e6%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.

I thought this was the command to find the iso in the cdrom drive:

qvm-start win7 --cdrom=/dev/cdrom

I don't have the iso file on dvd unfortunately. What can I do if I have it only on usb? How do I figure out the location of the usb file ?

James Chi

unread,
May 24, 2017, 4:58:41 PM5/24/17
to qubes-users, chi....@gmail.com
And which vm terminal should I be using? Should I be installing on a template vm?
Message has been deleted
Message has been deleted
Message has been deleted

mikih...@gmail.com

unread,
May 24, 2017, 6:23:35 PM5/24/17
to qubes-users, chi....@gmail.com
On Wednesday, May 24, 2017 at 10:58:41 PM UTC+2, James Chi wrote:
> And which vm terminal should I be using? Should I be installing on a template vm?

On Wednesday, May 24, 2017 at 10:58:41 PM UTC+2, James Chi wrote:
> And which vm terminal should I be using? Should I be installing on a template vm?

Use the command from dom0:

qvm-start |start a vm
win7 | name of the vm to start
--cdrom=/path/to/isofile.iso | the vm has a cdrom with an isofile in the folder /path/to/

Now use the following

qvm-start win7 --cdrom=vmname:/path/to/isofile.iso |vmname here is the name of the vm where your iso is (e.g. sys-usb) and the /path/to/isofile.iso in that vm.
There is a "cheatsheet" with the qubes commands at github
https://github.com/Jeeppler/qubes-cheatsheet/blob/master/qubes-cheatsheet.md

regards

Myron Weber

unread,
May 24, 2017, 8:50:40 PM5/24/17
to qubes-users

You got the right answer from mikih..., but don't hesitate to bring other newbie questions - we're all learning here. I've installed Win7 on Qubes a few times, most recently today, in fact. I had a couple issues, but everything seems good now. Happy to help if I can.

James Chi

unread,
May 25, 2017, 1:36:39 PM5/25/17
to qubes-users, chi....@gmail.com, mikih...@gmail.com

Here is where I am:

1. I attached usb drive to sys-usb
2. Went to sys-usb: Files, Other Locations, then into the USB drive
3. Copied windows 7 iso file to other AppVM (ie, win7 VMName)
4. Found windows 7 iso in win7 VM using search. I then moved the iso to the Downloads folder.
5. Used this command in Don0 Terminal: qvm-start win7 --cdrom=win7:/Downloads/win7.iso
6. The terminal returned: "This VM does not support attaching drives." (FYI, I also tried to run the iso from sys-usb VM but I received the same message for I tried to move it and try as well)

What am I doing wrong?

James Chi

unread,
May 25, 2017, 1:37:39 PM5/25/17
to qubes-users, chi....@gmail.com, mikih...@gmail.com

btw, thanks for all the support, You guys are awesome! I really appreciate it. It was so frustrating without help.

Reg Tiangha

unread,
May 25, 2017, 2:36:55 PM5/25/17
to qubes...@googlegroups.com
On 05/25/2017 11:36 AM, James Chi wrote:
> Here is where I am:
>
> 1. I attached usb drive to sys-usb
> 2. Went to sys-usb: Files, Other Locations, then into the USB drive
> 3. Copied windows 7 iso file to other AppVM (ie, win7 VMName)
> 4. Found windows 7 iso in win7 VM using search. I then moved the iso to the Downloads folder.
> 5. Used this command in Don0 Terminal: qvm-start win7 --cdrom=win7:/Downloads/win7.iso
> 6. The terminal returned: "This VM does not support attaching drives." (FYI, I also tried to run the iso from sys-usb VM but I received the same message for I tried to move it and try as well)
>
> What am I doing wrong?


Your command is wrong. You're trying to start the win7 VM while telling
it the iso is also in the win7 vm, which probably won't work.

Move back that iso to sys-usb (into the Downloads folder, if you want).
The command you would then run would look like this (I'm assuming the vm
you're trying to install to is the win7 one):

qvm-start win7 --cdrom=sys-usb:/home/user/Downloads/win7.iso


James Chi

unread,
May 25, 2017, 3:29:14 PM5/25/17
to qubes-users, r...@reginaldtiangha.com

I just tried what you said:

1. Copied iso to Downloads folder (using the link on the left menu of Files)
2. Used the same exact command as you said and I got the same exact message.
3. I then tried to copy iso to work folder, try to do the same thing using that folder, but received the same message.

James Chi

unread,
May 25, 2017, 3:30:58 PM5/25/17
to qubes-users, r...@reginaldtiangha.com

Am I supposed to change User to "something else"?

mikih...@gmail.com

unread,
May 25, 2017, 3:38:31 PM5/25/17
to qubes-users, r...@reginaldtiangha.com
On Thursday, May 25, 2017 at 8:36:55 PM UTC+2, Reg Tiangha wrote:
> On 05/25/2017 11:36 AM, James Chi wrote:
> > Here is where I am:
> >
> > 1. I attached usb drive to sys-usb
> > 2. Went to sys-usb: Files, Other Locations, then into the USB drive
> > 3. Copied windows 7 iso file to other AppVM (ie, win7 VMName)
> > 4. Found windows 7 iso in win7 VM using search. I then moved the iso to the Downloads folder.
> > 5. Used this command in Don0 Terminal: qvm-start win7 --cdrom=win7:/Downloads/win7.iso
> > 6. The terminal returned: "This VM does not support attaching drives." (FYI, I also tried to run the iso from sys-usb VM but I received the same message for I tried to move it and try as well)
> >
> > What am I doing wrong?
>

;) Well then. Is win7 a HVM?
Have you created it with : qvm-create --hvm win7 ?

Btw. you have to adjust mem, vcpu, net-vm to sys-firewall etc. Most probably you have to edit a copy of the /var/lib/qubes/appvms/win7/win7.conf file for use in a --custom-config= option when starting your win7 VM, but just try first to make a fresh HVM:

qvm-create --hvm win7

then do your

qvm-start win7 --cdrom=sys-usb:/home/user/Downloads/win7.iso

and make sure the win7.iso is really exactly in sys-usb in the folder /home/user/Downloads/ .

James Chi

unread,
May 25, 2017, 3:45:51 PM5/25/17
to qubes-users, r...@reginaldtiangha.com, mikih...@gmail.com

Woo hoo! Windows is loading files!!

You da man!

James Chi

unread,
May 25, 2017, 3:46:22 PM5/25/17
to qubes-users, r...@reginaldtiangha.com, mikih...@gmail.com
"Btw. you have to adjust mem, vcpu, net-vm to sys-firewall etc. Most probably you have to edit a copy of the /var/lib/qubes/appvms/win7/win7.conf file for use in a --custom-config= option when starting your win7 VM"

This went over my head.

James Chi

unread,
May 25, 2017, 3:50:48 PM5/25/17
to qubes-users, r...@reginaldtiangha.com, mikih...@gmail.com
On Thursday, May 25, 2017 at 3:38:31 PM UTC-4, mikih...@gmail.com wrote:

The windows installation stalled on "Starting Windows" I heard this happens. So this is what I found is the solution:

Hi,

You must copy your config in
cp /var/lib/qubes/appvms/windows7/windows7.conf ~/

Then at the bottom change graphic driver xen by cirrus
vim ~/windows7.conf
-> change xen by cirrus at the bottom

Start the vm and install with
qvm-start windows7 --custom-config=~/windows7.conf


What does that mean?


James Chi

unread,
May 25, 2017, 4:01:16 PM5/25/17
to qubes-users, r...@reginaldtiangha.com, mikih...@gmail.com

I found a video and will follow those steps.

James Chi

unread,
May 25, 2017, 4:31:30 PM5/25/17
to qubes-users, r...@reginaldtiangha.com, mikih...@gmail.com
I followed the video:

1. Found conf file, edited it to replace xen to cirrus, and renamed to win7-custom.conf
2. Use the following command: qvm-start win7 --custom-conf=$PWD/win7-custom.conf

But I get the following message:

--> Loading the VM (type = HVM)...

....

....

....

1: Start tag expected, '<' not found c<domain type='xen'>


:(

James Chi

unread,
May 25, 2017, 4:41:30 PM5/25/17
to qubes-users, r...@reginaldtiangha.com, mikih...@gmail.com

When I use qvm-start win7 (without custom config line) command, the VM loads and the new screen shows no bootable device. I was expecting it to show the windows 7 screen frozen again because I was using the original conf file. Just wanted to point this out in case it was helpful.

Thanks

James Chi

unread,
May 25, 2017, 4:49:00 PM5/25/17
to qubes-users, r...@reginaldtiangha.com, mikih...@gmail.com

I figure it out. I must have mistakenly deleted a < when edited the conf file. Thanks all!!!!

Reply all
Reply to author
Forward
0 new messages