I am working on a windows server which has a CentOS8 vm. I need to sync a directory /mnt/test on the CentOS machine with a folder in C:/ or D:/ in windows server. I did a samba share and was able to map the shared folder /mnt/test as a network drive H:/ on the windows machine. Whatever files I write to /mnt/test appear on H:/ . However I want to sync /mnt/test with some folder in local C or D drive since the downstream application can not read network paths.
Related
In one domain, we have NTFS file share (Windows Server 2014+ machine) and Ubuntu 16.04 machine.
I have added Ubuntu machine to this domain using Samba. Now I can see Active Directory groups and users and login to Ubuntu machine with domain users.
The task is to get information about NTFS file share permissions to Ubuntu machine programmatically.
Python solutions are preferred, but any advice will be appreciated.
I shared two folders via NFS on Windows and on CentOS server, then I mounted these two folders to mount point (\mnt\mymount).
Now I can't map creted mounted point on my Windows Server 2012 R2. I used standard Map option for Network drives on Windows. I used string like \centosLexQA1\mnt\mymount in Map wizard.
I can successfully ping CentOS server from my Windows Server 2012 R2 and was able to map Linux share which was mounted to \mnt\mymount.
Could someone please help to resolve the issue?
Thank you in advance,
Anna
I would like to import some VMs into a Hyper-V 2012 Core Host (The VMs are Win 7 with different browser versions)
When I use the Hyper-V Manager GUI from my client machine to import the VMs, it only allows me to select files on the Host. I have the VMs on my local client machine. I would like to create a folder on the host and copy my VMs up there.
The host is Hyper-V Core, so I believe PowerShell is my only option. I have, or can get, the necessary access I would need.
You should be able to create a directory on the remote host and copy files to it via UNC paths (assuming the administrative shares are enabled and accessible on the remote host):
New-Item -Type Directory \\hypervisor\C$\some\folder
Copy-Item C:\local\vm \\hypervisor\C$\some\folder -Recurse
Provide alternative credentials via the -Credential parameter if necessary.
I want to copy a file from my local C:\filename.png to the remote computer to which I am connected via remote desktop's C:\ drive.
Is it possible to copy using powershell or anyother terminal command?
I am using windows 7 (local PC) --- Remote Desktop (Windows Server 2003)
If your host's c: drive is injected into a terminal services session, it just gets a new drive letter in the remote session.
On my network, my host machine's drives are injected into a VM and C: becomes M:.
So in that case, in the remote session:
copy c:\file.png m:\png
BUt perhaps a beter way - from your host:
Copy \\remote\c$\file.png c:\file.png
My remote session usually names the local resource tsclient, such that I can browse my local C drive with this PS command:
Set-Location \\tsclient\C
then I can do anything I would normally do on the local file system, e.g. copying:
copy \\tsclient\C\file.txt C:\file.txt
You can share a folder on your server and map it as network drive on the client computer. Then you can use the copy command.
At the server side you kann check and deplace the files manually or with a program.
if both are Windows 7 ;
Just copy and paste done in ordinary window
If both machines run the same OS, then it can be achieved
If you are using mstc program then
Go to Remote Desktop Connection -> Options -> Local Resources -> check the drivers option and connect to the remote PC. Then you can perform copy paste like usual
I have a new laptop with a Windows partition and a Linux partition. I want to run qemu/kvm under Linux, and run an instance of Windows XP on that virtual machine. The desired setup is to have a virtual disk (in a Linux host file) as the C: drive on the virtual machine, and the underlying host Windows partition as the D: drive on the virtual machine. This is the setup I have been using for a while under VirtualBox on another laptop. Is it possible to do this with qemu/kvm?
One note - I don't have the Windows partition mounted under Linux, so the virtual machine instance would have the Windows partition all to itself. I would prefer the Windows partition to be read/write, but that is not absolutely necessary.
Thanks in advance,
Greg Johnson
I am pretty sure what you want to do can be done. You would need to ...
Create a file for the master boot record to be used by qemu/kvm
Mount it as a loop device
Prepend it to your Windows partition using software RAID
Then start QEMU using the RAID device as "-hdc" for drive C: or "-hdd" for drive D:. The drive would be read-write.
You can find detailed instructions at the Arch Linux QEMU wiki page.