Virt-Manager, Intel-GPU-Tools and more Dockers


dee31797

Recommended Posts

On 10/23/2019 at 10:49 AM, dee31797 said:

User 0 allows the use of "/root/.ssh/known_hosts" file.  If it's still prompting for the password I assume it's opening multiple SSH connections. I think it can be fixed but I'm still looking for it.

I got rid of the password prompts by generating an rsa key in the container (ssh-keygen) and copying it into the host's authorized_keys file

Link to comment
Just now, golli53 said:

I got rid of the password prompts by generating an rsa key in the container (ssh-keygen) and copying it into the host's authorized_keys file

Thank you very much for updating us on this!

 

Can you elaborate on the steps you took? So far I assume:

Console to container CLI and enter:

ssh-keygen

 

Link to comment
3 hours ago, dee31797 said:

Thank you very much for updating us on this!

 

Can you elaborate on the steps you took? So far I assume:

Console to container CLI and enter:


ssh-keygen

 

Of course. In container:

ssh-keygen

On host:

docker cp container-name:/root/.ssh/id_rsa.pub id_rsa.pub
sudo sh -c "cat id_rsa.pub >> ~/.ssh/authorized_keys"

 

  • Thanks 1
Link to comment
14 hours ago, golli53 said:

Of course. In container:


ssh-keygen

On host:


docker cp container-name:/root/.ssh/id_rsa.pub id_rsa.pub
sudo sh -c "cat id_rsa.pub >> ~/.ssh/authorized_keys"

 

Thanks again for letting the community know exactly how to deal with this issue!

The directory on the host " ~/ " you're saving that key in doesn't persist through Unraid reboots I don't think.  If not, I'm trying to think of a way to make this work indefinitely.

Link to comment
  • 2 weeks later...
1 minute ago, JT24 said:

Hi,
I'm just wondering how I can mount an external USB drive to transfer data?

I'm seeing it in the System Devices, just not having any luck in mounting.


Does anyone have any ideas?

For external USB drive mounting I recommend using the Unassigned Devices plugin.

Link to comment
5 minutes ago, dee31797 said:

For external USB drive mounting I recommend using the Unassigned Devices plugin.

 

5 minutes ago, Squid said:

Unassigned devices plugin

Perfect.

Your incredibly quick thinking and equally timed responses have solved my problem.

Many thanks.

Link to comment
  • 3 weeks later...

In Virt-Manager I don't see a way to modify which logical cores are assigned to a VM (like in the native unraid UI).

 

I see a way to assign a "current allocation" and "maximum allocation" of logical cores, as well as manually setting CPU topology, but nowhere do I see where to actually just set which logical cores are assigned to the VM. Am I missing something? I've seen screenshots of virt-manager that include this functionality.

 

What I see in the docker:

image.thumb.png.03fca53834fb6640e4dc4a007eba89a4.png

 

What I've seen of Virt-Manager elsewhere: 

image.thumb.png.5329cb079efd7a2aef9806bf53b4d432.png

Link to comment
4 minutes ago, GameKing505 said:

In Virt-Manager I don't see a way to modify which logical cores are assigned to a VM (like in the native unraid UI).

 

I see a way to assign a "current allocation" and "maximum allocation" of logical cores, as well as manually setting CPU topology, but nowhere do I see where to actually just set which logical cores are assigned to the VM. Am I missing something? I've seen screenshots of virt-manager that include this functionality.

 

What I see in the docker:

What I've seen of Virt-Manager elsewhere: 

 

I believe that's virt-manager running natively on the host instead of in docker

Link to comment
Just now, GameKing505 said:

So there's no way to achieve CPU pinning using the virt-manager docker? That's disappointing... I thought the whole idea was that you got /more/ control than the default unraid GUI for VMs.

I use Virt-Manager to have more control than the default unraid GUI.  CPU pinning would be the /same/ control as the default unraid GUI.  You can access this control in Unraid using Settings -> CPU pinning.

Link to comment
15 minutes ago, dee31797 said:

I use Virt-Manager to have more control than the default unraid GUI.  CPU pinning would be the /same/ control as the default unraid GUI.  You can access this control in Unraid using Settings -> CPU pinning.

Ideally I'd like to be able to modify for example, how many cores I've assigned to my OSX Virtual Machine, without needing to re-add in all of the custom XML that is needed to make the osx VM run. If I make these changes with the unraid UI, then my understanding is that custom XML would be overwritten.

 

I was hoping that using virt-manager would let me make those edits while preserving the custom XML, but it appears you can't assign individual logical cores to a VM using the virt-manager docker?

Link to comment
2 minutes ago, GameKing505 said:

Ideally I'd like to be able to modify for example, how many cores I've assigned to my OSX Virtual Machine, without needing to re-add in all of the custom XML that is needed to make the osx VM run. If I make these changes with the unraid UI, then my understanding is that custom XML would be overwritten.

 

I was hoping that using virt-manager would let me make those edits while preserving the custom XML, but it appears you can't assign individual logical cores to a VM using the virt-manager docker?

From what I can find using virt-manager remotely from docker like this won't give the option for CPU pinning.

Link to comment

Hello,

thank you for this nice docker.

I wonder if there is a way to change the path where virt manager stores snapshots or virtual disks

For now snapshots go to /var/lib/libvirt/qemu/snapshot and when creating a new vm the virtual disk goes into /var/lib/libvirt. The problem is that these paths are not persistent across a reboot. I'd like to keep all that stuff under /mnt/cache/domains.

Link to comment
5 hours ago, caplam said:

Hello,

thank you for this nice docker.

I wonder if there is a way to change the path where virt manager stores snapshots or virtual disks

For now snapshots go to /var/lib/libvirt/qemu/snapshot and when creating a new vm the virtual disk goes into /var/lib/libvirt. The problem is that these paths are not persistent across a reboot. I'd like to keep all that stuff under /mnt/cache/domains.

You can change the virtual disk location. I don't use snapshots so I'm not sure.

Link to comment
  • 3 weeks later...
On 10/15/2019 at 4:55 PM, dee31797 said:

I never really considered adding additional software to it for notifications because it converts every single file after I record it (if it's in the /watch folder and a .ts file).

So this will only process .ts files?  I just stumbled on this and I'm currently using HDHomeRUN.  The device records to the array in .MPG, not .TS

Link to comment
8 minutes ago, CoZ said:

So this will only process .ts files?  I just stumbled on this and I'm currently using HDHomeRUN.  The device records to the array in .MPG, not .TS

Hi @CoZ

Yes it only does .ts files.  I use a hdhomerun as well but not directly.  I use it with apps like Plex, Emby, etc. and I've only ever seen .ts output container, even from Windows Media Center from back in the day.  To use different file extensions this wouldn't be a good docker.  I recommend giving Unmanic a look.  It allows for the same functionality but also allows you to customize the function and in your case change which extension(s) to automatically convert.  It's available on the CA applications Unraid plugin.

Link to comment
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.